NATO phonetic alphabet decode
NATO phonetic alphabet decode. Runs entirely on your device, nothing is uploaded.
Runs on your device. The file is never uploaded.
NATO phonetic alphabet decode splits its input on any run of whitespace and looks each token up in the code word table. Matching ignores case, the letters and digits join with nothing between them, and a slash becomes a space. The table is literal, so Juliet with one t, or Nine, passes through as the word it is.
Questions
How does it parse the input?
By splitting on any run of whitespace. Each token is looked up in the code word table, case-insensitively, and replaced by its letter or digit. A slash token becomes a space. The resulting characters are joined with nothing between them, and any run of multiple spaces is collapsed to one, so line breaks in the input do not matter.
What happens to a word that is not a code word?
It is copied through as it is. There is no error and no attempt to guess at a near miss, so a misheard or misspelt code word appears in your output verbatim and is easy to spot. That also means ordinary prose mixed into the input survives, which makes it usable on a transcript that only partly uses the alphabet.
Does it accept alternative spellings like Juliet or Nine?
No. Case is the only thing ignored. The table is matched exactly otherwise: Juliett with two t characters, X-ray with the hyphen, and Niner for the digit 9. Anything else, including the common one-t Juliet, is treated as an unknown token and passed straight through.
Why is there no space between my words?
Because the word separator was missing. Code words are joined with nothing between them, and only a slash token produces a space. If the source did not mark the word breaks with slashes, you get one continuous run of letters and need to insert the breaks by hand.
Does it restore capital letters?
No. The alphabet carries no case information at all, so everything decodes to lower case letters and digits regardless of how the code words were written. Use the Case converter afterwards if you need upper case, which is usually what you want for a serial number, a booking reference or a licence key. The decoding itself runs on your device with nothing uploaded.