forked from rails/rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix inflector bug where -ice gets pluralized into -ouse
This should happen for mouse or louse, but not slice or pumice.
- Loading branch information
1 parent
cbe74cf
commit 16e7f2f
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16e7f2f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ egrep '(m|l)ouse$' /usr/share/dict/words
blouse
coalmouse
colemouse
creepmouse
delouse
dormouse
flittermouse
flouse
jalouse
louse
mouse
overblouse
pricklouse
rattlemouse
reremouse
shearmouse
shrewmouse
smouse
talmouse
titmouse
tittymouse
Tomtitmouse
zamouse
$ egrep '^(m|l)ouse$' /usr/share/dict/words
louse
mouse
$ egrep '(m|l)ice$' /usr/share/dict/words
accomplice
Alice
allice
amice
chalice
cilice
complice
Ellice
enchalice
fortalice
malice
mice
police
prepolice
pumice
pummice
resplice
slice
splice
supplice
surplice
Triplice
undersplice
unsurplice
$ egrep '^(m|l)ice$' /usr/share/dict/words
mice
$
It does appear that without this change, quite a few words would be wrong. Blouse => Blice for example.