Module: PhoneticEncoder

Defined in:
lib/phonetic_encoder.rb,
lib/phonetic_encoder/version.rb,
lib/phonetic_encoder/dicts/nato.rb,
lib/phonetic_encoder/dicts/sounds.rb

Overview

Docs to come

Defined Under Namespace

Classes: Encoder

Constant Summary collapse

VERSION =
'1.1.2'.freeze
NATO =
{ 'a' => 'alpha',
'b' => 'bravo',
'c' => 'charlie',
'd' => 'delta',
'e' => 'echo',
'f' => 'foxtrot',
'g' => 'golf',
'h' => 'hotel',
'i' => 'india',
'j' => 'juliett',
'k' => 'kilo',
'l' => 'lima',
'm' => 'mike',
'n' => 'november',
'o' => 'oscar',
'p' => 'papa',
'q' => 'quebec',
'r' => 'romeo',
's' => 'sierra',
't' => 'tango',
'u' => 'uniform',
'v' => 'victor',
'w' => 'whiskey',
'x' => 'x-ray',
'y' => 'yankee',
'z' => 'zulu' }.freeze
SOUNDS =
{ 'a' => 'aye',
'b' => 'bee',
'c' => 'sea',
'd' => 'dee',
'e' => 'ee',
'f' => 'eff',
'g' => 'jee',
'h' => 'aytch',
'i' => 'eye',
'j' => 'jay',
'k' => 'kay',
'l' => 'el',
'm' => 'em',
'n' => 'en',
'o' => 'oh',
'p' => 'pee',
'q' => 'cue',
'r' => 'are',
's' => 'ess',
't' => 'tee',
'u' => 'you',
'v' => 'vee',
'w' => 'doubleyou',
'x' => 'ex',
'y' => 'why',
'z' => 'zed' }.freeze