Skip to content

Releases: iwpnd/toponym

[v0.5.1] added toponym cli

29 Apr 13:45

Choose a tag to compare

You can use toponym via CLI to generate toponyms from a .csv of words.

> toponym build --help

Usage: toponym build [OPTIONS]

Options:
  --language TEXT    language to build toponyms for  [required]
  --inputfile TEXT   input csv with list of words to create toponyms for
                     [required]

  --outputfile TEXT  output file to store resulting toponyms to [required]
  --help             Show this message and exit.
# inputfile.csv
Москва
Москва Ломоносовский
> toponym build --language russian --inputfile inputfile.csv --outputfile output.json
# output.json
{
    'Москва': ['Москва', 'Москву', 'Москвой', 'Москвы', 'Москве', 'Москви'],
    'Москва Ломоносовский': [
        'Москва Ломоносовский',
        'Москвой Ломоносовским',
        'Москву Ломоносовского',
        'Москви Ломоносовского', [...]]
}

PyPi release version 0.5.0

28 Apr 08:30

Choose a tag to compare

  • added package to pypi
  • added pydantic models where applicable
  • updated recipe loading to now use built-in recipes, custom dictionaries or json files,
  • updated test cases accordingly
  • added a proper documentation https://toponym.iwpnd.pw/