The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lingua::Alphabet::Phonetic - map ABC's to phonetic alphabets

SYNOPSIS

  use Lingua::Alphabet::Phonetic;
  my $oMilSpeaker = new Lingua::Alphabet::Phonetic('NATO');
  my @asMilSpeak = $oMilSpeaker->enunciate('ABC');

DESCRIPTION

At present, the only alphabet available for conversion is the U.S. Military / NATO standard where "ABC...YZ" is pronounced "Alpha Bravo Charlie ... Yankee Zulu". It is called 'NATO' and it is included with this distribution.

METHODS

enunciate

Given a string, returns a list of phonetic alphabet "words", one word per character of the original string. If there is no "word" in the alphabet for a character, that character is returned in the list position.

OTHER ALPHABETS

To create a conversion scheme for another alphabet, simply subclass this module and provide a method _name_of_letter() which takes a character and returns its phonetic name. See NATO.pm as an example.

SEE ALSO

http://www.columbia.edu/~fuat/cuarc/phonetic.html contains a list of phonetic alphabets from all over the world!

TO-DO

Implement more alphabets.
Investigate how we might handle non-ASCII alphabets. Unicode?

BUGS

Please tell the author if you find any!

AUTHOR

Martin Thurn (mthurn@cpan.org).