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
Just add to your Gemfile:
gem "vocabularry", :git => "git://github.com/kirs/vocabulary.git"
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
- Kir Shatrov (Evrone Company)