https://github.com/leonardiwagner/wiktionary
get word definitions from wikitionary
https://github.com/leonardiwagner/wiktionary
clojure dictionary grammar languages
Last synced: about 1 year ago
JSON representation
get word definitions from wikitionary
- Host: GitHub
- URL: https://github.com/leonardiwagner/wiktionary
- Owner: leonardiwagner
- License: apache-2.0
- Created: 2019-02-05T13:54:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T14:23:43.000Z (about 7 years ago)
- Last Synced: 2025-03-27T13:51:21.606Z (about 1 year ago)
- Topics: clojure, dictionary, grammar, languages
- Language: Clojure
- Size: 58.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wiktionary
get word definitions from wikitionary.org
[](https://travis-ci.org/leonardiwagner/wiktionary)
[](https://versions.deps.co/leonardiwagner/wiktionary)
[](https://clojars.org/wiktionary)
## How to use
- Add this library on :dependencies in your project.clj file:
```clojure
[wiktionary "0.0.3-SNAPSHOT"]
```
- Require the library:
```clojure
(: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:
```clojure
(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][apache-license]
[apache-license]:./LICENSE