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 hashes)

Uploaded Source

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