private InflectionTrie get(char c) { InflectionTrie res; if (!children.TryGetValue(c, out res)) { res = new InflectionTrie(); children.Add(c, res); } return res; }
private InflectionTrie get(char c) { InflectionTrie res; if (!children.TryGetValue(c, out res)) { res = new InflectionTrie(); children.Add(c, res); } return(res); }
private void rebuildIndex() { index = new Dictionary <string, InflectionTrie>(); foreach (var conj in conjugations.Values) { var trie = new InflectionTrie(); foreach (var form in conj.Tenses) { trie.addForm(form, conjugations); } index[conj.Name] = trie; } }
private void rebuildIndex() { index = new Dictionary<string, InflectionTrie>(); foreach (var conj in conjugations.Values) { var trie = new InflectionTrie(); foreach (var form in conj.Tenses) { trie.addForm(form, conjugations); } index[conj.Name] = trie; } }