Martin 'Kingpin' Thurn > Lingua-Alphabet-Phonetic-0.103 > Lingua::Alphabet::Phonetic

Download:
Lingua-Alphabet-Phonetic-0.103.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.09   Source  

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 ^

new

Create an object of this class. See SYNOPSIS above.

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://en.wikipedia.org/wiki/Spelling_alphabet is a brief overview

http://www.bckelk.uklinux.net/phon.full.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!

LICENSE ^

This software is released under the same license as Perl itself.

AUTHOR ^

Martin Thurn (mthurn@cpan.org).

syntax highlighting: