INAW is a RubyGem that allows you to randomly choose a word in different languages.
For the time being it only has online support, which means it will choose a word on a random word generator website but I will add offline support in the near future.
Languages available are: Arabic (AR), Danish, (DA), Dutch (NL), Finnish (FI), French (FR), German (DE), Italian (IT), Portuguese (PT), Spanish (ES), Swedish (SV).
See Usage for how to use INAW.
Add this line to your application's Gemfile:
gem 'inaw'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install inaw
Available languages parameters are: AR, DA, DE, ES, FI, FR, IT, NL, PT, SV.
require INAW
# chooses a random English word
random_english_word = INAW.word('EN')
# chooses a random French word
random_french_word = INAW.word('FR')
Bug reports and pull requests are welcome on GitHub at https://github.com/realYuushi/i-need-a-word.
The gem is available as open source under the terms of the MIT License.