This is a python package for having fun with words ordered by length and then lexicographically
Project description
words-serial-number
This is a python package for having fun with words ordered by length and then lexicographically.
(eg: a, b, c, d, e, ..., x, y, z, aa, ab, ac, ..., ax, ay, az, ba, bc, bd
and so on...)
Each word has it's serial number. For example, if we use standart english alphabet "abcdefghijklmnopqrstuvwxyz"
and we want to find the 8514th word in this alphabet - we can just call the get_word_by_number
method and get the answer - it's lol.
We can do the same thing in other direction. If we want to find the serial number of the word jesus
, we can call the get_word_number
and recieve the number: it's 4671049.
There are also other helpful methods:
get_words_numbers_in_sentence
- as it says, we recieve a list of words' serial numbers from a sentence (string). ("lol lmao"
->[8514, 219741]
)nums_to_words
- same, but in other direction ([235476151, 18091001]
->["sugoma", "amogus"]
)words_range
- same as python range, but with words. (1000, 1500, 100
->generator("all", "aph", "atd", "awz", "bav")
)infinite_generation
- it just prints all the words starting with the first word in an infinite loop.
todo
- readme rus
- poetry
- pypi push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wordlexord-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bda0ada5fbb0e33a5d9fa233ebfc09c52ef8f38f745fc79e80ebba35d3964bc |
|
MD5 | 8e6550e4a5b5bb3c6d02ecbff917c2cf |
|
BLAKE2b-256 | 9d9beb69f3a2e3dada7403782bd40a047e0d78af6d21947e8a185d8d687796ff |