开发者

Is there an Objective-C library that does the same thing as Ruby-English Gem does?

开发者 https://www.devze.com 2023-02-13 06:35 出处:网络
http://english.rubyforge.org/ require \'english/inflect\' \"boy\".plural#=&g开发者_运维百科t; \"boys\"

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消