-
Notifications
You must be signed in to change notification settings - Fork 3
/
spelling_correct.py
309 lines (309 loc) · 19 KB
/
spelling_correct.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
spelling_correct = { ' Road ': [' Rd '],
' Street ': [' St '],
' responding Union Township': [' responding in Township'],
'2 Lebanon Township': ['2Lebanon Township'],
'2, Tewksbury Township': ['2Tewksbury Township'],
'49 Rescue, Raritan Township': ['For an unrescued resident in Township'],
'Alexander Township': ['I was here in Township'],
'Alexandria': ['Alexanrian'],
'Alexandria Township': ['Alexander Township', 'out of the injury township'],
'Amwell': [ 'AML', 'Amarillo', 'Amel', 'Anwaul', 'Danwell', 'Emmel',
'End West', 'Enwood', 'Hamel', 'Hamil', 'Humboldt', 'Humbolt',
'Sandwell', 'Seminole', 'Stanwell'],
'Amwell Township': [ 'Ammo', 'Ammo Township', 'Amo Township',
'Animal Township', 'Antelope Township',
'Des Moines Township', 'San Juan Township',
'St. Louis Township'],
'Barley Sheaf': ['Barley Chief', 'Barley Sheep'],
'Bethlehem': ['Baltham', 'SLAM', 'Tebethelehem'],
'Bethlehem Township': [ 'Bethlehem Tech', 'Bethlehem Town',
'Breslaham Township', 'Buffam Township',
'back from Township'],
'Bloomsbury': ['Bluesberry'],
'Bloomsbury Borough': ['Bloom Borough', 'Blue Missouri Borough'],
'Boonton': ['Boond', 'Boondon', 'Boontonon'],
'Branchburg': ['Bransford'],
'Bucks County': ['Fox County'],
'CO2 alarm': ['seal alarm'],
'Califon Borough': [ 'Califontine Borough', 'Californ Borough',
'California Borough', 'Caliphon Borough'],
'Choking': ['Choging'],
'Clinton': ['Caldwin', 'Clemson', 'Clifdon', 'Clindon', 'Flint', 'Quentin'],
'Clinton Township': [ 'Clamp Township', 'Clayton Township',
'Clem Township', 'Client Township',
'Climb Township', 'Clint Township',
'Clinton Tachib', 'Hunt Township'],
'Croton': ['Croaten'],
'Delaware Township': ['Dillard Township'],
'EMS 1, Raritan Township': ['Ems1Raritan Township'],
'East Amwell': [ 'East Amok', 'East Anvil', 'East Danville', 'East Demo',
'East Elmwood', 'East Emerald', 'East Envil',
'East Enwil', 'East Enwold', 'East Island',
'East Monclair', 'East Montclair', 'East Samoa',
'East Samuel'],
'East Amwell Township': [ 'East 1 Township', 'East Amal Township',
'East Amont Township', 'East Amount Township',
'East Aynwell Township', 'East Edmont Township',
'East End 1 Township', 'East Endwell Township',
'East Ferry Township', 'East Inland Township',
'East No. 1 Township', 'East and 1 Township',
'East, Amwell Township', 'Estanbul Township',
'east ammo township', 'eastbound township'],
'Fire, Clinton Township': ['Firecliff Township'],
'Fire, Hampton Borough': ['Firehamp Borough'],
'Fire, Holland Township': ['Firehall and Township'],
'Fire, Raritan Township': [ 'Firebird and Township',
'Fireware and Townshipib'],
'Flemington': [ 'Bloomington Borough', 'Clemington', 'Flamingo Borough',
'Flamington', 'Flem', 'Flemingtonington', 'Fulmington',
'Plumb', 'Plumbington', 'Plummedon', 'Wilmington'],
'Flemington Borough': [ 'Farm Borough', 'Feminine Borough',
'Flam Borough', 'Flemington Township',
'Fulm Borough', 'Helm Borough', 'Hunt Borough',
'Lam Borough', 'Leam Borough', 'Plain Borough',
'Plank Borough', 'Plankdon Borough',
'Plann Borough', 'Plum Borough', 'Pluml Borough',
'Plumm Borough', 'Wilm Borough'],
'Franklin Township': ['Gateway Township'],
'Frenchtown': ['French Town'],
'Frenchtown Borough': ['Frankstown Borough'],
'Gardner': ['Garner'],
'Glen Gardener': ['Longardner'],
'Glen Gardner': [ 'Glen Garner', 'Glengardner', 'Glenn Gardener',
'Gwanganur', 'Gwangarne'],
'Glen Gardner Borough': [ 'Eglint Gardner Borough',
'Glen Gardener Borough', 'Glenbrenner Borough',
'Glenn Gardner Borough',
'Glenn-Gardner Borough',
'Spongly Gardner Borough',
'to Gardner Borough'],
'Greyrock': ['Gray Rock'],
'Hampdon Borough': ['Hampton Borough'],
'Hampton Borough': ['Hamp Borough'],
'High Bridge': ['Highbridge', 'highbridge'],
'High Bridge Borough': [ 'Harbridge Boroug', 'Hybrid Borough',
'Hybridsboro'],
'Holland': ['Fireholland'],
'Holland Township': [ 'Hall and Township', 'Hall in Townshi',
'hall and township', 'haul on Township'],
'Hunterdon': [ '100 and', '100 in', 'Hunter', 'Hunterdondang',
'Hunterdondon', 'Huntingdon'],
'Hunterdon Care Center': [ 'Hunter Care Center', 'Hunter and Care Center',
'Hunterdon and Care Center'],
'Hunterdon County': [ '100 County', 'Hundred and County', 'Hunt Count',
'Hunterdon and County'],
'Kingwood Township': [ 'Kenwood Township', 'Kingway Township',
'with Township'],
'Knowlton': ['Nolan'],
'Lambertville': [ 'City Of Lamberthal', 'City Of Lambertville',
'City, Lambertville', 'Emerald City', 'Lamarville',
'Lambauville', 'Lambeau', 'Lambeauville', 'Lamberfell',
'Lamberlost City', 'Lamberphil', 'Lamberthal',
'Lamberthill', 'Lamberthville', 'Lambertville City',
'Lambertvilleville', 'Lamberville', 'Lambeville',
'Lamborough', 'Lamerill', 'Lamertville', 'Lamerville',
'Land Realty City', 'Land Revolt', 'Land Rural City',
'Landryville', 'Landville', 'Landwardville',
'Lanerville', 'Laneville', 'Lanternville', 'Lantville',
'Laramieville', 'Laramville', 'Laraville',
'Larimerville', 'Larrinville', 'Limberville',
'Limerick', 'Lumberphil', 'Real City', 'Revealed City',
'Swanland Road City', 'city of Lambertville',
'city of lamberthal'],
'Lambertville City': ['Lambert City'],
'Lebannon': ['Levidon'],
'Lebannon Township': ['11th and Township', 'Leavitt and Township'],
'Lebanon Borough': [ '11 on Borough', 'Leavenham Borough',
'Leavenworth Borough'],
'Lebanon Township': [ '11 Township', '11 in Township', '11 on Township',
'11 on township', '11 to Township',
'111 on Township', 'LeBlanc Township',
'Leavenant Township', 'Leavett on Township',
'Leavitt Township', 'Leavitt on Township',
'Leavittown Township', 'Lebannon Township',
'Limited Township', 'Loden Township',
'Lubbenon Township', 'limited township'],
'Lopatcong': ['Lopatkin', 'Wapakong', 'low pack on', 'will pack on'],
'Lopatcong Township': [ 'Black on Township', "I'll pass on Township",
'LOPEC on township', 'Lepakon Township',
"Lil' Pac-On Township", 'Lopakon Township',
'Lopatcon Township', 'Lopatkung Township',
'Lopez on Township', 'MoPAC on Township',
'Opac on Township', 'POHAC on Township',
'Park on Township', 'Pohack on Township',
'back on Township', 'back on township',
'go back on Township', 'low pack on township',
'the back on township', 'the pack on township',
"we're back on Township"],
'Mansfield Township': ['Manfield Township'],
'Menden Borough': ['Mendenborough'],
'Mount Arlington': ['Mount Arl'],
'Oldwick': ['Old Wick'],
'Paging': ['Puging'],
'Phillipsburg': ['Filtsburg', 'Fullsburg', 'Philsburg', 'Silksburg'],
'Pittstown': ['Pitsdown', 'Pitstown', 'Pitts Town'],
'Pohatcong Township': ['Pohackon Township'],
'Potterstown': ['Potters Town'],
'Raritan': ['Brainerd', 'Marendon', 'Rareton', 'Renton'],
'Raritan Township': [ '1-Rayerson Township', 'Aaron Township',
'Active Township', 'American Township',
'Araratou Township', 'Arlington Township',
'Arr Township', 'Arrington Township',
'Arroyo Township', 'Awareness Township',
'Barr Township', 'Barret Township',
'Barrett Township', 'Barrett and Township',
'Barrington Township', 'Barron Township',
'Bear and Township', 'Bear in township',
'Brereton Township', 'Burn Township',
'Burr Township', 'Burrington Township',
'Byrne Township', 'Emergency Township',
'Emergent Township', 'Enran Township',
'Enrandon Township', 'Environment Township',
'Erickson Township', 'Ericsson Township',
'Err Township', 'Errant Township', 'Farr Township',
'Fire and Township', 'Frerich Township',
'Harrison Township', 'Jamaica Township',
'Larrick Township', 'Mareden Township',
'Maren Township', 'Marin Township',
'Marion Township', 'Marriott Township',
'Marriott and Township', 'Mary township',
'Maryknoll Township', 'Maryland Township',
'Mer Township', 'Merne Township', 'Merrit Township',
'Merritt Township', 'Mery Township',
'Oregon Township', 'Origin Township',
'RT in Township', 'Ranger Township',
'Rare Earth Township', 'Rare Township',
'Rare in Township', 'Rarit Township',
'Raritan Towns', 'Rarity Township',
'Rear End Township', 'Rear Entrant and Township',
'Rear Township', 'Rear and Township',
'Rear end township', 'Rear in Township',
'Rectum Township', 'Reder Township',
'Rederdon Township', 'Redwood Township',
'Ree Township', 'Regent Township',
'Rehabilitation Township', 'Ren Township',
'Rendon Township', 'Renn Township',
'Renn Townshipip', 'Rent Township',
'Renter and Township', 'Renwick Township',
'Responder to Township', 'Responding to Township',
'Riordan Township', 'Road and Township',
'Round Township', 'Routed Township', 'Rur Township',
'Ryan Township', 'Ryder Township', 'Ryer Township',
'Ryerson Township', 'Varon Township',
'Varr Township', 'Veri Township',
'Verican Township', 'Vernon Township',
'Verrant Township', 'Verrant and Townshipip',
'Verridon Township', 'Wanderers and Township',
'Warr Township', 'Warrant and Township',
'Wind River Township', 'a rare detachment',
'and Emergency Township', 'at Township',
'direct from Township', 'emergency township',
'emergent township', 'errant township',
'fire in township', 'for your township',
'in a random township', 'in the township',
'rare and township', 'rare attach',
'rare in Township', 'rare in a township',
'rare in town', 'rare in township', 'rare township',
'rare, in township', 'rarity township',
'ready to Township', 'ready to township',
'rear and township', 'rear end Township',
'rear end of Township', 'rear end tangent',
'rear end township', 'rear to Township',
'rear township', 'rear-end in township',
'rear-end township', 'rescue in township',
'respond to Township', 'responder at your township',
'responder in township',
'responder out to Township',
'responding to township',
'right after the township', 'right around Township',
'right in Township', 'right in township',
'right into Township', 'right of township',
'right on township', 'right on your township',
'right to Township', 'road and township',
'route and attach', 'route and township',
'route attached', 'route in Township',
'router to Township', 'routing township',
'running to the township', 'running to township',
'someRaritan Townshiphip', 'variant in township',
'variant township', "we're at the Township",
"we're at your township", "we're here in Township",
"we're in Township", "we're in township",
"we're on Township", "we're out in Township",
'where at the township', 'where to Township',
'where to township?', 'writing to Township'],
'Readington': ['Redd', 'Reddington', 'Ridington'],
'Readington Township': [ 'Burl Township', 'Read Town', 'Read Township',
'Readick Township', 'Readingtonickdon Township',
'Readingtoning Township',
'Readingtonison Township', 'Red Township',
'Reed Township', 'Rudd Township',
'ready for Township', 'ready for township',
'responding to Township', 'riding to Township',
'right on Township', 'routing to Township',
'running from Township', 'running to Township',
'writing in Township'],
'Repeating': ['Greetings', 'Reading ', 'Skiing', 'Speeding'],
'Repeating, Station': ['Meeting Station'],
'Responding': ['Spawning'],
'Route 78': ['route 70'],
'Shop Rite': ['shop right'],
'Sick Person': ['Thick Person'],
'Stanton': ['Standon'],
'State Police': ['say please'],
'Studer Road': ['Duda Road', 'Scooter Road', 'Stoudre Road'],
'Tewksbury': ['Chiefsbury', 'Eastbury', 'Keeksbury', 'Tewsbury'],
'Tewksbury Township': [ '123 Township', '23 Township', '3 Township',
'6th grade Township', 'Antiques Ferry Township',
'Cheeksburry Township', 'Dukes Ferry Township',
'Seas Ferry Township', 'Sioux Ferry Township',
'Smontee Ferry Township', 'Tewkesbury Township',
'Tisray Township', 'Tixbury Township',
'Tooth Fairy Township', 'Tuxbury Township',
'Two Ferry Township', 'X-ray Township',
'to Express Township', 'to Ferry Township',
'to express township', 'two ferry township',
'two-ferry township', 'two-story township'],
'Town of Clinton': ['Santa Clinton', 'town of Clinton'],
'Township': [ 'Tach', 'Tadge', 'Tash', 'Tatchett', 'Townshiphip',
'Townshipship', 'Townshipshipline'],
'Union Township': ['Deunion Township', 'Indian Township', 'Unit Township'],
'Walter Foran': ['Walter Farran'],
'Warren County': ['4th and County', 'Warrant County', 'Warranty County'],
'Washington ': ['Wash '],
'Washington Borough': ['Wash Borough'],
'Washington Township': ['Wash Township'],
'West Amwell': [ 'West Elmwood', 'West Emerald', 'West Hamilton',
'West Hamlet', 'West Hamlin', 'West Samuel',
'West Township'],
'West Amwell Township': [ 'West 91st Township', 'West Amal Township',
'West Amount Township', 'West Anmol Township',
'West Bama Townshipib', 'West Damwell Township',
'West Danville Township',
'West Danwood Township', 'West Edmont Township',
'West End 1 Township', 'West Hamwell Township',
'West Namo Township', 'West Salem Township',
'West Tamwell Township',
'with Amwell Township'],
'Wharton': ['Whardon'],
'Whippany': ['Whibbany'],
'back pain': ['Backpain', 'back pane'],
'chest pain': ['Chesapine', 'Chesepeake'],
'described': ['ascribed'],
'fall victim': ['full victim'],
'fire alarm activation': ['firearm activation'],
'general fire alarm': ['general firearm'],
'into Bucks County': ['Indoplex County'],
'into Frenchtown Borough': ['InterFrenchtown Borough'],
'leg pain': ['Lake Payne'],
'lift assist': ['Leipzig', 'left assist'],
'male party': ['Mail party', 'mail party'],
'psych eval': ['psyche vial'],
're-alert': ['Real Alert'],
'responding': ['spawning'],
'responding Union Township': ['responding in township'],
'sick person': ['6 person', '6th person', 'sigperson'],
'syncopal': [ 'Singapore', 'sickable', 'singapore', 'sinkable',
'syncable', 'thinkable'],
'syncopal episode': ['single episode', 'sinkhole episode'],
'syncope': ['synchro'],
'vomiting': ['abominate']}