Skip to content

Interactive command-line tool for practicing the NATO phonetic alphabet.

License

Notifications You must be signed in to change notification settings

jpb7/phonetic-alphabet-trainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Phonetic alphabet trainer

Interactive command-line tool for practicing the NATO phonetic alphabet.

Features

  • Runs directly in the terminal.
  • Randomizes order of the phonetic codes from run to run.
  • Times user responses and provides warnings on slow entries.
  • Prints a summary at the end of each run.
  • Gracefully handles quitting with CTRL-C.

Example

❯ python3 phonetic_alphabet_trainer.py

Enter "quit" at any time.

D: Delta
G: Golf
F: Foxtrot
[...]
R: Romeo
V: Victor
J: Juliett

Time: 42.65s
Misses: 0

Took too long on:
  - Romeo: 3.68s

Installation

Copy and paste the raw script into a local Python file, or use the following curl command.

curl -o phonetic_alphabet_trainer.py https://raw.githubusercontent.com/jpb7/phonetic-alphabet-trainer/main/phonetic_alphabet_trainer.py

Alternatively, you can clone the entire repo.

git clone https://github.com/jpb7/phonetic-alphabet-trainer.git

Make sure you have Python 3.6 or newer.

python --version

Official Python downloads page:

Usage

Simply run the script from the terminal. Using a shell alias is a lot more convenient: you can add the following to your ~/.bashrc or ~/.zshrc, modifying the file path as needed.

alias nato="python3 $HOME/bin/phonetic_alphabet_trainer.py"

Don't forget to re-source the shell config. For example, for zsh you'd run:

source ~/.zshrc

Then you can run the script with just a few keystrokes.

❯ nato

Enter "quit" at any time.

C: Charlie
L: Lima
F: Foxtrot
[...]

License

About

Interactive command-line tool for practicing the NATO phonetic alphabet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages