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.

贡献者指南