Project

wordref

0.0
No commit activity in last 3 years
No release in over 3 years
Tiny gem to translate words with the WordReference API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

= 0.3
~> 1.12
~> 1.8
 Project Readme

Build Status Gem Version Code Climate

Rtatoeba

Rtatoeba is a tiny gem to access tatoeba.org which doesn't have an API yet.

Installation

Add this line to your application's Gemfile:

gem 'rtatoeba'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rtatoeba

Usage

tatoe = Rtatoeba::Rtatoeba.new(from: 'eng', to: 'kor', query: 'hello')
tatoe.sentences # =>
{
    "Hello, I have a reservation, my name is Kaori Yoshikawa. Here is the confirmation card." => [
        [0] "안녕하세요,예약을 했는데요, 제이름은 카오리 요시카와 입니다. 확인카드는 여기있습니다."
    ],
                                                                                "Hello, Tom." => [
        [0] "안녕, 톰."
    ],
                                                                         "Hello, I am Nancy." => [
        [0] "안녕하세요. 난시입니다.",
        [1] "안녕하세요, 저는 낸시예요."
    ],
                                                                                     "Hello!" => [
        [0] "안녕하세요.",
        [1] "여보세요."
    ],
                                                                     "Hello, it's me, Nancy!" => [
        [0] "안녕하세요. 난시입니다."
    ],
                                                                               "Hello world!" => [
        [0] "안녕하세요세계"
    ]
}

Note: Lang is in ISO-639-2 format

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request