Skip to content

Spell things out phonetically: "hotel india." But then spell out the phonetics phonetically, ad absurdum.

License

Notifications You must be signed in to change notification settings

zimolzak/echo-charlie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo Charlie

Echo Charlie is a collection of Python functions to mess about with Morse code and phonetic alphabets.

One function will replace string letters with their NATO/ICAO phonetic alphabet equivalents. The silliness comes when you apply it twice in a row.

>>> from echo import echo
>>> echo('Hello')
'Hotel echo lima lima oscar '
>>> echo(echo('Hello'))
'Hotel oscar tango echo lima, echo charlie hotel oscar, lima india
mike alfa, lima india mike alfa, oscar sierra charlie alfa romeo,    '

Another function will take an unspaced Morse string and find out all the letter strings that it could possibly represent.

>>> from echo import full_expand
>>> full_expand(['--..'])
{'ge', 'mee', 'mi', 'td', 'tne', 'ttee', 'tti', 'z'}

About

Spell things out phonetically: "hotel india." But then spell out the phonetics phonetically, ad absurdum.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages