Is there an Objective-C library that does the same thing as Ruby-English Gem does?
http://english.rubyforge.org/
require 'english/inflect'
"boy".plural #=&g开发者_运维百科t; "boys"
"ox".plural #=> "oxen"
"boys".singular #=> "boy"
"oxen".singular #=> "ox"
There isn't any provided by Apple and I haven't heard of any third-party libraries that can do that in Objective-C.
精彩评论