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.2.tar.gz (14.3 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.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file wiktionary_term_fetcher-0.1.2.tar.gz.

File metadata

  • Download URL: wiktionary_term_fetcher-0.1.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for wiktionary_term_fetcher-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9a220852cab39844b6ba66b9c35e54a40baaeceba8ea9056f5360dbae5a675b7
MD5 1177be0c3e562c7c9fa756ce45642d79
BLAKE2b-256 8e241a26309beb3a50a5a2ed902d5b3ebced4de65062991d6628fef77e8eaf49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wiktionary_term_fetcher-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5835e85afe0baa8a33ffd0fa8b22ac94e3aefedbccc92c88a2b3f8a394ce6c
MD5 177ade0f143049f6bb150735692993a9
BLAKE2b-256 fddf73ce22c151e5f2c57aed8f46f1b0866c77dee5d7d8f1f3e4230f4a1b14cb

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