当我浏览PluralizationService
的源代码时,我注意到了一些奇怪的东西。在这个类中有几个私有字典反映了不同的复数规则。例如:
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"};
什么是字符串中的四个破折号组?我没有在代码中看到对它们的处理,所以它们不是某种模板。我唯一能想到的是它们是被审查的粗话('ch----is'本应为'chassis'),在这种情况下实际上会影响可读性。有其他人遇到过这个问题吗?如果我对实际完整列表感兴趣,该如何查看?