Skip to content

leonardiwagner/wiktionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wiktionary

get word definitions from wikitionary.org

Build Status Dependencies Status Clojars Project

How to use

  • Add this library on :dependencies in your project.clj file:

    [wiktionary "0.0.3-SNAPSHOT"]
  • Require the library:

    (:require [wiktionary.core :as wiktionary])

Documentation

  • get-definitions
    (get-definitions word)
    (get-definitions word language)

    Search for definitions for provided word.
    If language is not provided "english" will be the default value.
    The return is a list of definitions.

    Example:

    (wiktionary/get-definitions "stop" "english")
    ;["verb" "noun" "adverb" "noun" "adjective"]

    The possible return values are: ["pronoun", "verb", "noun", "adjective", "adverb", "conjunction", "preposition", "interjection", "letter", "numeral", "article", "particle", "mutation", "determiner", "participle", "circumposition"]

Contributing

Feel free to contribute 🤗, just create an issue before submiting a PR.

License

Apache 2.0