This crate is a yet another Rust port of wordfreq, allowing you to look up the frequencies of words in many languages.
https://docs.rs/wordfreq/
Source code is licensed under either of
at your option.
In addition, this crate contains model files copied from the wordfreq repository in the resources directory, which are licensed under CC BY-SA 4.0.
We describe how to reproduce the model files and source code (especially for myself).
Download the wordfreq repository and checkout the version 3.0.2 (if you want to reproduce our environment).
shell
$ git clone https://github.com/rspeer/wordfreq.git wordfreq-orig
$ cd wordfreq-orig
$ git checkout v3.0.2
$ cd ..
Convert the model files to this crate's format.
shell
$ python -m venv venv
$ source ./venv/bin/activate
$ pip install -r scripts/requirements.txt
$ scripts/convert.sh
Generate the source code according to the model files.
shell
$ python scripts/gen_codes.py