opensextant.phonetics | index /Users/ubaldino/workspace/opensource/Xponents-Core/src/main/python/opensextant/phonetics.py |
Geocoding Phonetics Library
:created Created on Mar 15, 2012
:author: ubaldino
:copyright: MITRE Corporation, (c) 2010-2012
Requirements: advas.phonetics library is used here; but a modified version of it is included in this package.
Classes | ||||||||||
|
Functions | ||
|
Data | ||
ARRAY_OF_PHONETICS = [{'c', 'k', 'q'}, {'f', 'p'}, {'g', 'j', 'y'}, {'c', 's', 'z'}, {'s', 'z'}, {'v', 'w'}] JA_CONSONNANCE = {'g', 'j', 'y'} KA_CONSONNANCE = {'c', 'k', 'q'} PH_CONSONNANCE = {'f', 'p'} REDUCE_CONSONNANCE = {'bb', 'cc', 'dd', 'ff', 'gg', 'kk', ...} SA_CONSONNANCE = {'c', 's', 'z'} WA_CONSONNANCE = {'v', 'w'} XA_CONSONNANCE = {'s', 'z'} ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz' digits = '0123456789' phonetic_a2w = {'0': 'zero', '1': 'one', '2': 'two', '3': 'three', '4': 'four', '5': 'five', '6': 'six', '7': 'seven', '8': 'eight', '9': 'nine', ...} phonetic_alphabet = ['alpha', 'bravo', 'charlie', 'delta', 'echo', 'foxtrot', 'golf', 'hotel', 'india', 'juliet', 'kilo', 'lima', 'mike', 'november', 'oscar', 'papa', 'quebec', 'romeo', 'sierra', 'tango', ...] phonetic_numbers = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'] phonetic_w2a = {'alpha': 'a', 'bravo': 'b', 'charlie': 'c', 'delta': 'd', 'echo': 'e', 'eight': '8', 'five': '5', 'four': '4', 'foxtrot': 'f', 'golf': 'g', ...} |