复数 - 单数单数、复数

2023-09-11 01:50:18 作者:十友九狗

有没有在C#中单数的任何算法 - ?复数词(英文)或确实存在一个.NET库来做到这一点(可能也不同语言)

Is there any algorithm in c# to singularize - pluralize a word (in english) or does exist a .net library to do this (may be also in different languages)?

推荐答案

您也有System.Data.Entity.Design.PluralizationServices.PluralizationService.

更新:旧的答案值得更新。现在有还Humanizer: https://github.com/MehdiK/Hu​​manizer

UPDATE: Old answer deserves update. There's now also Humanizer: https://github.com/MehdiK/Humanizer