PluralizationService
奇妙なことに気づいたとき、私はのソースを閲覧していました。クラスには、異なる複数形規則を反映した 2 つの個人辞書があります。例えば:
private string[] _uninflectiveWordList =
new string[] {
"bison", "flounder", "pliers", "bream", "gallows", "proceedings",
"breeches", "graffiti", "rabies", "britches", "headquarters", "salmon",
"carp", "----", "scissors", "ch----is", "high-jinks", "sea-bass",
"clippers", "homework", "series", "cod", "innings", "shears", "contretemps",
"jackanapes", "species", "corps", "mackerel", "swine", "debris", "measles",
"trout", "diabetes", "mews", "tuna", "djinn", "mumps", "whiting", "eland",
"news", "wildebeest", "elk", "pincers", "police", "hair", "ice", "chaos",
"milk", "cotton", "pneumonoultramicroscopicsilicovolcanoconiosis",
"information", "aircraft", "scabies", "traffic", "corn", "millet", "rice",
"hay", "----", "tobacco", "cabbage", "okra", "broccoli", "asparagus",
"lettuce", "beef", "pork", "venison", "mutton", "cattle", "offspring",
"molasses", "shambles", "shingles"};
文字列の 4 つのダッシュのグループは何ですか? 私はそれらがコードで処理されているのを見なかったので、それらはある種のテンプレートではありません。私が考えることができる唯一のことは、それらが検閲された罵倒語(「ch ---- is」は「chassis」になる)であり、この場合は実際に読みやすさを損なっているということです. 他の誰かがこれに出くわしましたか?実際の完全なリストに興味がある場合、どのように表示しますか?