You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rubyworks edited this page Sep 13, 2010
·
5 revisions
General Usage
require 'english'
Piecemeal Usage
You can use the English library in piecemeal fashion by requiring just the specific script you are interested. For example, the inflection functionality will probably be a common choice in this regard.
require 'english/inflect'
However, this will only provide the .en.singular and .en.plural syntax. To get the “magic” syntax without the need for .en. you also must require the English::Mixin code.