Skip to content

Commit

Permalink
Words ending in ouse (#28)
Browse files Browse the repository at this point in the history
* fix rule for words ending in ouse

The rule seems to have been entered backwards.
And it can be generalized to use->uses.

* remove incorrect and redundant rule
  • Loading branch information
pgier authored and markbates committed Nov 21, 2019
1 parent 8636048 commit 0a3cf22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions flect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ var singlePluralAssertions = []tt{
{"mouse", "mice"},
{"louse", "lice"},
{"house", "houses"},
{"spouse", "spouses"},
{"octopus", "octopi"},
{"virus", "viri"},
{"alias", "aliases"},
Expand Down
4 changes: 1 addition & 3 deletions plural_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ var singleToPlural = map[string]string{
"datum": "data",
"testis": "testes",
"alias": "aliases",
"house": "houses",
"shoe": "shoes",
"news": "news",
"ovum": "ova",
Expand Down Expand Up @@ -180,8 +179,7 @@ func init() {
AddPlural("ex", "ices")
AddPlural("ula", "ulae")
AddPlural("isis", "ises")
AddPlural("ouses", "ouse")
AddPlural("olves", "olf")
AddPlural("use", "uses")
AddPlural("lf", "lves")
AddPlural("rf", "rves")
AddPlural("afe", "aves")
Expand Down

0 comments on commit 0a3cf22

Please sign in to comment.