No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
brain_memory
tests
.gitignore
.travis.yml
MANIFEST.in
README.md
setup.py

README.md

brain-memory

Build Status

Practice and reference the Mnemonic major system

Requires python>=3.6

Convert

Convert any one or two digit number to a wordlist

>>> from brain_memory.majorsystem import number_to_words
>>> number_to_words(34)
['amor', 'hammer', 'hummer', 'mare', 'maria', 'marry', 'mixer', 'moor', 'mower']

Convert any English word to a number. The word has to be in the CMU dictionary to receive proper phonetic translations, otherwise it'll be a direct conversion - an asterisk is added when that happens.

from brain_memory.majorsystem import word_to_number
>>> word_to_number('cheese')
'60'
>>> word_to_number('philanthropist')
'85214901'
>>> word_to_number('doesnotexist')
'102101*'

Practice

Practice converting a word to a number. For this, the internal wordlist is used.

>>> from brain_memory.train import practice_to_number, practice_to_word
>>> practice_to_number()
convert: bunny
the number: 92
correct!

Practice converting a one or two digit number to a word. This uses the same CMU dictionary to validate if the word is proper English. Any valid word can be used and is not restricted to the internal wordlist.

>>> practice_to_word()
convert: 65
a word: jail
correct!