jaraco/inflect

singular_noun on word ending in "s" removes s.

Offen

#159 geöffnet am 18.05.2022

 (5 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Python (125 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (1.082 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung


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