Skip to main content

UNKNOWN

Project description

This is a small module for Python that allows you to find the rhyme to established Russian word.

Working with module

1) Search rhyme the word

Search rhymes is the method of find_rhyme class Rifmator. To search, simply call this method an instance of the class Rifmator, and pass as a parameter remueve word. If the rhyme is not found will return None, otherwise return a list of rhymes. P. S: If the rhyme is not found poprobute to indicate the emphasis in the word upper case the stressed vowel, because the word is not found in the dictionary and it was not possible to calculate the stress machine.

2) Adding words to the dictionary

If you need to add a new word to the dictionary, use the add_word method in class Rifmator. In the entered word must include the indication of stress of the upper register of the stressed vowel. After calling the function it will return True or False depending on success or failure adding to the dictionary, respectively.

3) Save a dynamic dictionary in a file

All actions happen with a dictionary in memory, then there is work with a dynamic dictionary. If you want something to change in the dictionary had acted upon the next startup use the method save_dicts class Rifmator.

5) configuration Module

All module settings are in the file config.py. The following changes are available:

  • rhymes_dict - Path to head points rhyming dictionary

  • ling_dict - Path to file-linguistic dictionary

  • use_wiki - whether to Use linguistical studies in the analysis of the word Wiktionary (requires Internet connection)

  • learning - Auto-learning of words for the introduction

The full version of the documentation read: https://github.com/alxmamaev/Rifmator_Engine

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

rifmator_engine-1.0.zip (3.1 kB view details)

Uploaded Source

File details

Details for the file rifmator_engine-1.0.zip.

File metadata

  • Download URL: rifmator_engine-1.0.zip
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rifmator_engine-1.0.zip
Algorithm Hash digest
SHA256 9ae5404f730d7c557601200e42a5f39b76afe04882efe6a630f5c11b5bedb81f
MD5 10573fafcfcce6ce0f919b808586cfc4
BLAKE2b-256 bcf7193b96e9239d4bf9144c3d76e1729c2b6d20c9947d7f3a5aecd67c759e60

See more details on using hashes here.

Supported by

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