jaraco/inflect

Capitalized words are not inflected

開放

#201 建立於 2023年9月7日

 (1 則留言) (0 個反應) (0 位負責人)Python (125 個分叉)github user discovery
featurehelp wanted

倉庫指標

星標
 (1,082 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南