Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aupiff/def
word definitions and morphological transformations
https://github.com/aupiff/def
Last synced: 10 days ago
JSON representation
word definitions and morphological transformations
- Host: GitHub
- URL: https://github.com/aupiff/def
- Owner: aupiff
- License: bsd-3-clause
- Created: 2015-02-11T09:04:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-01T20:12:35.000Z (over 9 years ago)
- Last Synced: 2023-04-05T22:39:46.969Z (over 1 year ago)
- Language: Haskell
- Size: 242 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# def
A command line interface to wiktionary. Look up any word in any language,
defined in any language. Scrapes the absymally inadequate wiktionary API to
display a nice, pretty-printed definition.[example api call](http://en.wiktionary.org/w/api.php?action=parse&format=xml&prop=text|revid|displaytitle&callback=?&page=obnubiler)
## usage
The program takes command line arguments `source-lang definition-lang`
```
stack exec -- def fr en
```Available language codes:
* "en" -> English
* "fr" -> French
* "ru" -> Russian
* "es" -> Spanishsaves all successfully found definitions to `dict.log` file for future reference.
example output:
```----------------------------
crasseAdjective
* crass
* (of humor) dirty, filthy
Noun
* filth, muck
* (especially, dirty) froth, foam
Verb
* first-person singular present indicative of crasser
* third-person singular present indicative of crasser
* first-person singular present subjunctive of crasser
* first-person singular present subjunctive of crasser
* second-person singular imperative of crasser
----------------------------
```