https://github.com/pcboy/rtatoeba
Tiny gem to access tatoeba.org
https://github.com/pcboy/rtatoeba
Last synced: 11 months ago
JSON representation
Tiny gem to access tatoeba.org
- Host: GitHub
- URL: https://github.com/pcboy/rtatoeba
- Owner: pcboy
- License: other
- Created: 2013-04-01T07:02:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T12:00:10.000Z (over 9 years ago)
- Last Synced: 2025-07-28T13:37:10.944Z (11 months ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/pcboy/rtatoeba)
[](http://badge.fury.io/rb/rtatoeba)
[](https://codeclimate.com/github/pcboy/rtatoeba)
# 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