inflections-clj icon indicating copy to clipboard operation
inflections-clj copied to clipboard

Singular of "leaves"

Open dhk465 opened this issue 6 years ago • 2 comments

By applying (singular) to a string "leaves", it returns "leafe".

It should be "leaf" instead.

I had to apply this manually but I think it has to be in the code by default.

(singular! #"(?i)([^f])ves$" "$1f")

dhk465 avatar Jan 23 '20 16:01 dhk465

I found a set of words for (singular! #"(?i)([^f])ves$" "$1fe") too, like lives and wives.

How does it take care of exceptions?

dhk465 avatar Jan 24 '20 11:01 dhk465

It also thinks the singular of CURVE is CURF.

I thought this bug was fixed in 2013?

PeterBengtson avatar Aug 14 '24 11:08 PeterBengtson