static Inflection() { Inflections = InflectionProcess.FromFile(ConfigurationFiles.PathTo("Inflections", "Regular nouns")); foreach (var entry in File.ReadAllLines(ConfigurationFiles.PathTo("Inflections", "Irregular nouns"))) { var split = entry.Split('\t'); var singular = split[0]; var plural = split[1]; IrregularPlurals[singular] = plural; IrregularSingulars[plural] = singular; } }
static Inflection() { Inflections = InflectionProcess.FromFile(DataFiles.PathTo("Inflections", "Regular nouns")); foreach (var entry in File.ReadAllLines(DataFiles.PathTo("Inflections", "Irregular nouns"))) { var split = entry.Split('\t'); var singular = split[0]; var plural = split[1]; IrregularPlurals[singular] = plural; IrregularSingulars[plural] = singular; } IrregularVerbs = new Spreadsheet(DataFiles.PathTo( "Inflections", "Irregular verbs", ".csv"), "Base form"); }