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

Setup

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
 => ["яблоко", "яблоня", "лесть", "чепуха"]

Todo

  • Add RSpec tests

Author

Feel free for pull requests!