Skip to main content

A library to fetch all the available nouns, adjectives or verbs from wiktionary, in different languages

Project description

wiktionary_fetcher

This is the repository of a library to fetch all the available nouns, adjectives or verbs from wiktionary, in different languages.

Standard Wiktionary API is used. Some false positives (words which are not of the required type) can be included. The generated file uses UTF-8 encoding, and it stores each word in a single line.

Usage

The allowed parameters are these:

# wiktionary-fetcher --help
usage: wiktionary-fetcher [-h] [--lang LANG] [--terms {nouns,verbs,adjectives}] output

Wiktionary term fetcher

positional arguments:
  output                Output file. If the name is '-', standard output will be used

optional arguments:
  -h, --help            show this help message and exit
  --lang LANG           Language to be queried from Wiktionary. Shortcuts for some common languages (en, es, ca, de) are
                        accepted. You can also use any valid language name being used in English Wiktionary. (for instance,
                        'French' or 'Basque'). (default: en)
  --terms {nouns,verbs,adjectives}
                        Terms type to be queried from Wiktionary (default: nouns)

Usual patterns are

wiktionary-fetcher --lang en --terms verbs english_verbs.txt
wiktionary-fetcher --lang Japanese --terms nouns japanese_nouns.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wiktionary-term-fetcher-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wiktionary_term_fetcher-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file wiktionary-term-fetcher-0.1.0.tar.gz.

File metadata

  • Download URL: wiktionary-term-fetcher-0.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for wiktionary-term-fetcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cbe4a655e7267114192c69b6125d0ead3c1268e66bbbfb3f73a8a9a5c6c2102
MD5 5d5bcba8f0309dd5cb532a6687d88063
BLAKE2b-256 b799d489be00a77effad7289c5b6cf8bb114d5161bd3ddc5025fa9ebd65140f1

See more details on using hashes here.

File details

Details for the file wiktionary_term_fetcher-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wiktionary_term_fetcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edbe1e456e99f72093303e532507b368ffbdf4aebb59300a516d98e617a63152
MD5 17b4980ff01255f23d1cf608b76096dc
BLAKE2b-256 cea42319c1dd34fedbe20803522cc2a974bdc3a3094309007c404cf4bbfbd9ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page