Skip to content
/ tatoeba Public

๐Ÿ“œ A complete, documented API wrapper for querying and retrieving sentences from the Tatoeba corpus.

Notifications You must be signed in to change notification settings

vxern/tatoeba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

tatoeba

A complete, documented API wrapper for the Tatoeba corpus, built in Gleam.

Package Version Hex Docs

gleam add tatoeba

To get a sentence, use sentence.get(id: <sentence id>), passing a sentence ID obtained from sentence.new_id(id: <id>):

import gleam/io
import tatoeba/sentence

pub fn main() {
  let assert Ok(id) = sentence.new_id(12_212_258)
  let assert Ok(Some(sentence)) = sentence.get(id)

  io.println(sentence.text) // "This work is free of charge."
}

Further documentation can be found at https://hexdocs.pm/tatoeba.

About

๐Ÿ“œ A complete, documented API wrapper for querying and retrieving sentences from the Tatoeba corpus.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages