jaraco/inflect

singular_noun on word ending in "s" removes s.

Open

#159 opened on May 18, 2022

 (5 comments) (2 reactions) (0 assignees)Python (125 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,082 stars)
PR merge metrics
 (No merged PRs in 30d)

Description


import inflect as Inflect
inflect = Inflect.engine()
inflect.singular_noun("car")           # get False, as expected
inflect.singular_noun("mass")          # get "mas", expected False

Is this behavior a bug? singular_noun() is supposed to return False when the word is already singular, and I can find no reference to suggest "mass" is the plural of "mas", which is itself the plural of "ma".

Contributor guide