jaraco/inflect

Capitalized words are not inflected

Offen

#201 geöffnet am 07.09.2023

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (125 Forks)github user discovery
featurehelp wanted

Repository-Metriken

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

Beschreibung

Found a strange issue when trying to retrieve the plural of property, using either plural() or plural_noun():

Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] on win32

>>> import inflect
>>> p = inflect.engine()

>>> p.plural('property')
'properties'

>>> p.plural('Property')
'Propertys'

I looked through the documentation, but didn't see any notes about why this would be.

I think the plural of property, whether capitalized or not, should be properties.

Contributor Guide