Is there a reliable way to 'pluralize' english words with Python?
sneekula 969 Nearly a Posting Maven
Recommended Answers
Jump to PostIs there a reliable way to 'pluralize' english words with Python?
there are some cookbook recipe in ASPN you can refer to.
here.
they may not be wat you want, but at least will give you a head start
Jump to PostPython's regex module re allows you to establish english plural rules in a more condensed from. This one should take care of most common plurals, you may add more rules ...
# using module re to pluralize most common english words # (rule_tuple used as function default, …
All 5 Replies
Infarction 503 Posting Virtuoso
ghostdog74 57 Junior Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
pwdyson 3 Newbie Poster
Gribouillis commented: nice idea +3
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.