Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 2.07 KB

README.md

File metadata and controls

79 lines (55 loc) · 2.07 KB

wort

Get definitions for multiple English words at once. Simply enter a list of comma-separated words and hit the "Get Definitions" button.

Dictionary sources:

Tested with Python 3.8.0a3

Blocked words - Sources:

Other resources

Stats

There are:

  • 146625 unique words in the DB
  • 206353 word definitions as many words have multiple meanings
  • out of all unique words 57275 spellings in IPA notation
  • 370366 example English sentences
  • approx 20000 expressions in the thesaurus

Benchmarks


Searching for 20k most common English words as determined by n-gram frequency analysis of the Google's Trillion Word Corpus, takes around 0.0158s. Out of those words only 542 definitions weren't found.

Searching for random unordered 1000 words takes around: 0.000804s

TODO

  • generate Anki flash-cards
  • get word definitions directly from a CSV file

Docker


Build image

    docker build -t wort:latest .

Run the container

    docker run --rm --name web wort run.py

Run the app by mounting local host src dir

    docker run -d -p 5000:5000 --name web --rm -v ~/git/wort:/app wort /app/run.py

Get the logs

    docker logs web -f