-
Notifications
You must be signed in to change notification settings - Fork 5
Home
rubyworks edited this page Sep 13, 2010
·
5 revisions
require 'english'
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.
require 'english/mixin' require 'english/inflect'