Home

rubyworks edited this page Sep 13, 2010 · 5 revisions
Clone this wiki locally

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.

  require 'english/mixin'
  require 'english/inflect'