Giter Site home page Giter Site logo

english's Introduction

English

DESCRIPTION

English is a spin-off of Facets, collecting together all English language libraries together under a single unified project. The English project intends to provided a general purpose set of English-oriented text manipulation and natural language processing Ruby libraries in one convenient package.

RELEASE NOTES

Please see the HISTORY file.

SYNOPSIS

The primary means of usage is via the English::String class. A normal Ruby String can be quickly concerted to an English::String class using the #en method. With the converted object you can call any of the string-based English methods.

require 'english/inflect'

"Goose".en.plural  #=> "Geese"

By loading the ‘language/mixin’ library, you can further remove the need for the #en method. Instead the Language module will use whatever language is set as current. By default ‘en’ is the current language setting.

require 'language/mixin'

"Goose".plural  #=> "Geese"

To load the entire English library, including the ‘lanaguage/mixin’ script, simply use:

require 'english'

See Language project for more information on support for other languages. For details on all the methods the English library supplies see the <a href=“rubyworks.github.com/english/rdoc/”>API documentation</a>.

NOTE: If your system has a case insensitive file system, an alternative to english.rb is provided. Use en.rb instead:

require 'en'

INSTALLATION

Using RubyGems

$ sudo gem install english

We do not recommend site installations any longer, but if you need to do so, you can download the .tar.gz file from GitHub and use <a href=“proutils.github.com/setup/”>Ruby Setup<a/> to install English manually:

$ tar -xvzf english-1.0.0.tar.gz
$ cd english-1.0.0
$ sudo setup.rb

For Windows users the last line needs to be ‘ruby setup.rb’.

TESTING

To run the test suite without installing, you can use:

$ script/test

AUTHORS

Many developers, both directly and indirectly, made English possible. See the AUTHORS file for a list of specific acknowledgements.

COPYING

English, Copyright © 2006–2010 Thomas Sawyer

Some libraries within English are copyrighted to respective authors, or are derivatives of such acknowledged work. See the library files for copyright notices.

The English collection is distributed under the terms of the MIT license.

english's People

Contributors

alexchee avatar michaelklishin avatar trans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.