-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsynonyms.py
More file actions
60 lines (58 loc) · 1.08 KB
/
Copy pathsynonyms.py
File metadata and controls
60 lines (58 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import re
raw_synonyms = {
'zero':'0',
'one':'1',
'two':'2',
'three':'3',
'four':'4',
'five':'5',
'six':'6',
'seven':'7',
'eight':'8',
'nine':'9',
'ten':'10',
'alpha':'a',
'beta':'b',
'charlie':'c',
'delta':'d',
'epsilon':'e',
'foxtrot':'f',
'golf':'g',
'hotel':'h',
'india':'i',
'julia':'j',
'kilo':'k',
'lima':'l',
'mike':'m',
'november':'n',
'october':'o',
'papa':'p',
'quebec':'q',
'romeo':'r',
'sierra':'s',
'tango':'t',
'uniform':'u',
'victor':'v',
'whiskey':'w',
'x-ray':'x',
'yankee':'y',
'zulu':'z',
'[+]':'plus',
'[-]':'minus',
'free':'three',
'return to': 'return',
'create 4': 'create for',
'next to': 'next',
'ranch': 'range',
'4 range': 'for range',
'four range': 'for range',
'the': '',
'when': 'if',
'find': 'define',
'parameter':'parameters',
'perimeter':'parameters',
'clear':'create',
'x':'times',
'[*]':'times'
}
synonyms = {("(^|[^A-Za-z])" + k + "([^A-Za-z]|$)"): " " + v + " " for (k, v) in raw_synonyms.items()}