jaraco/inflect

singular_noun on word ending in "s" removes s.

Ouverte

#159 ouverte le 18 mai 2022

 (5 commentaires) (2 réactions) (0 personne assignée)Python (125 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (1 082 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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".

Guide contributeur