/vocabulary

Wrapper for unofficial Google Dictionary API

Primary LanguageRubyMIT LicenseMIT

PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED

Vocabulary

Wrapper for unofficial Google Dictionary API. Fetch meanings and part of speech of any word of any language. You can find the list of supported languages (over 90) in separated file

Sponsored by Evrone

Getting Started

Installation

Run gem install vocabulary or

Just add to your Gemfile:

gem "vocabulary"

Usage

Examples:

word = Vocabulary::lookup("kaunis", :fi)
word.part_of_speech
 => "adjective" 
word.meanings
 => ["beautiful", "lovely", "pretty", "handsome", "fine", "nice", "fair"] 

word = Vocabulary::lookup("яблоко", :ru)
word.part_of_speech
 => "noun"
word.meanings
 => ["apple"]

You can fetch meanings in any language:

word = Vocabulary::lookup("apple", :en, :ru)
word.part_of_speech
 => "noun"
word.meanings
 => ["яблоко", "яблоня", "лесть", "чепуха"]

Contributing

Please read Code of Conduct and Contributing Guidelines for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License.