由网友(十友九狗)分享简介:有没有在C#中单数的任何算法 - ?复数词(英文)或确实存在一个.NET库来做到这一点(可能也不同语言)Is there any algorithm in c# to singularize - pluralize a word (in english) or does exist a .net library to...
有没有在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/Humanizer
UPDATE: Old answer deserves update. There's now also Humanizer: https://github.com/MehdiK/Humanizer
相关推荐
最新文章