https://github.com/vsoftco/spell
Spells text using phonetic alphabet(s)
https://github.com/vsoftco/spell
phonetic python spelling
Last synced: 6 months ago
JSON representation
Spells text using phonetic alphabet(s)
- Host: GitHub
- URL: https://github.com/vsoftco/spell
- Owner: vsoftco
- License: mit
- Created: 2018-01-11T20:56:10.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T15:13:46.000Z (about 1 year ago)
- Last Synced: 2025-04-10T01:15:29.441Z (6 months ago)
- Topics: phonetic, python, spelling
- Language: Python
- Size: 29.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spell.py
Spells text using various alphabets.
By default, uses the NATO phonetic alphabet.### usage:
python3 spell.py [-h] [-d DICTIONARY] [text]
### positional arguments:
text text to be spelled, if omitted spells from the standard input
### optional arguments:
-h, --help show this help message and exit
-d DICT, --dict DICT custom dictionary (in JSON format)
### ExamplesTo spell using the default NATO phonetic alphabet, use
python3 spell.py Hello
To spell the text "Hello" using Morse code, use
python3 spell.py -d Morse.json Hello
To spell from the standard input using the default NATO phonetic alphabet, use
python3 spell.py
then start typing (end with CTRL+D on UNIX-like systems).
`spell.py` accepts UNIX-like piping, e.g., type
cat some_file.txt | python3 spell.py # or python3 spell.py < some_file.txtto spell the content of `some_file.txt`.
### Creating custom dictionariesYou can create your own custom dictionary in JSON format, see `NATO.json` or
`Morse.json` for details.