check_yo_spelling 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +4 -0
  3. data/CHANGELOG.rdoc +2 -0
  4. data/Gemfile.lock +35 -0
  5. data/README.md +36 -0
  6. data/Rakefile +6 -0
  7. data/check_yo_spelling.gemspec +24 -0
  8. data/data/.keep +0 -0
  9. data/data/alabama_cities.yml +553 -0
  10. data/data/alaska_cities.yml +246 -0
  11. data/data/arizona_cities.yml +397 -0
  12. data/data/arkansas_cities.yml +499 -0
  13. data/data/california_cities.yml +1417 -0
  14. data/data/colorado_cities.yml +404 -0
  15. data/data/connecticut_cities.yml +142 -0
  16. data/data/delaware_cities.yml +76 -0
  17. data/data/florida_cities.yml +900 -0
  18. data/data/georgia_cities.yml +609 -0
  19. data/data/hawaii_cities.yml +146 -0
  20. data/data/idaho_cities.yml +206 -0
  21. data/data/illinois_cities.yml +1315 -0
  22. data/data/indiana_cities.yml +654 -0
  23. data/data/iowa_cities.yml +869 -0
  24. data/data/kansas_cities.yml +554 -0
  25. data/data/kentucky_cities.yml +510 -0
  26. data/data/louisiana_cities.yml +469 -0
  27. data/data/maine_cities.yml +132 -0
  28. data/data/maryland_cities.yml +483 -0
  29. data/data/massachusetts_cities.yml +243 -0
  30. data/data/michigan_cities.yml +683 -0
  31. data/data/minnesota_cities.yml +805 -0
  32. data/data/mississippi_cities.yml +357 -0
  33. data/data/missouri_cities.yml +887 -0
  34. data/data/montana_cities.yml +307 -0
  35. data/data/nebraska_cities.yml +452 -0
  36. data/data/nevada_cities.yml +117 -0
  37. data/data/new_hampshire_cities.yml +97 -0
  38. data/data/new_jersey_cities.yml +536 -0
  39. data/data/new_mexico_cities.yml +381 -0
  40. data/data/new_york_cities.yml +1173 -0
  41. data/data/north_carolina_cities.yml +721 -0
  42. data/data/north_dakota_cities.yml +238 -0
  43. data/data/ohio_cities.yml +1177 -0
  44. data/data/oklahoma_cities.yml +639 -0
  45. data/data/oregon_cities.yml +353 -0
  46. data/data/pennsylvania_cities.yml +1718 -0
  47. data/data/rhode_island_cities.yml +35 -0
  48. data/data/south_carolina_cities.yml +378 -0
  49. data/data/south_dakota_cities.yml +288 -0
  50. data/data/states.yml +51 -0
  51. data/data/tennessee_cities.yml +424 -0
  52. data/data/texas_cities.yml +1619 -0
  53. data/data/utah_cities.yml +314 -0
  54. data/data/vermont_cities.yml +118 -0
  55. data/data/virginia_cities.yml +579 -0
  56. data/data/washington_cities.yml +599 -0
  57. data/data/west_virginia_cities.yml +387 -0
  58. data/data/wisconsin_cities.yml +748 -0
  59. data/data/wyoming_cities.yml +156 -0
  60. data/gemfile +6 -0
  61. data/lib/check_yo_spelling.rb +4 -0
  62. data/lib/check_yo_spelling/usa.rb +52 -0
  63. data/lib/check_yo_spelling/version.rb +3 -0
  64. data/pkg/spell_checker-0.1.0.gem +0 -0
  65. data/spec/lib/usa_city_checker_spec.rb +16 -0
  66. data/spec/lib/usa_state_checker_spec.rb +16 -0
  67. data/spec/spec_helper.rb +3 -0
  68. metadata +159 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 46b8941fe13b16ed1d7869b6369f1b83c1f3371b
4
+ data.tar.gz: 5b57dd05a955c3fdc8e526724f9c0390d2799091
5
+ SHA512:
6
+ metadata.gz: e739aef9e69811388ce6e6de31ea1af5d23e765ea96ae300a62885ee71f4720d56a0bfc0a95b6b7b019f6ca89517e9c996d40495ba1e8956f0a8e5d7665ecaa0
7
+ data.tar.gz: c84adf7db3b3bf7be16d81733c76a209a11431bd16f686214c844a774cfe8ba2d25d81f62c29ecac61844c84a6fb7ecc3036f725b2deb813f8f19b36ac999cb7
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --color
2
+ --format progress
3
+ --require spec_helper
4
+ --pattern "spec/**/*_spec.rb"
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,2 @@
1
+ === 0.1.0
2
+ - Initial Gem
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ check_yo_spelling (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.5)
10
+ geolookup (0.5.10)
11
+ levenshtein (0.2.2)
12
+ rake (10.4.2)
13
+ rspec (3.0.0)
14
+ rspec-core (~> 3.0.0)
15
+ rspec-expectations (~> 3.0.0)
16
+ rspec-mocks (~> 3.0.0)
17
+ rspec-core (3.0.4)
18
+ rspec-support (~> 3.0.0)
19
+ rspec-expectations (3.0.4)
20
+ diff-lcs (>= 1.2.0, < 2.0)
21
+ rspec-support (~> 3.0.0)
22
+ rspec-mocks (3.0.4)
23
+ rspec-support (~> 3.0.0)
24
+ rspec-support (3.0.4)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ bundler (~> 1.5)
31
+ check_yo_spelling!
32
+ geolookup (~> 0.5.10)
33
+ levenshtein (~> 0.2.2)
34
+ rake
35
+ rspec (~> 3.0.0.beta1)
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # check_yo_spelling
2
+ This gem offers spelling suggestions for cities and states in the United States
3
+
4
+ ## Installation
5
+
6
+ Add this line to your applications's Gemfile:
7
+ gem 'check_yo_spelling'
8
+
9
+ and then execute:
10
+ $ bundle
11
+
12
+ or install it yourself as:
13
+ $ gem install 'check_yo_spelling'
14
+
15
+ ## Examples
16
+ ```ruby
17
+
18
+ # State Checking
19
+ CheckYoSpelling::USA.check_state("Alabma")
20
+ # => "Alabama"
21
+
22
+ # City Checking
23
+ CheckYoSpelling::USA.check_city("Montgomry", "AL")
24
+ # => "Montgomery"
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( http://github.com/Spokeo/CheckYoSpelling/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Write specs!
31
+ 4. Commit your changes (`git commit -am 'Add some feature'`)
32
+ 5. Push to the branch (`git push origin my-new-feature`)
33
+ 6. Create new Pull Request
34
+
35
+ ## Running the Specs
36
+ $ rake
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+ RSpec::Core::RakeTask.new('spec')
5
+ task :default => :spec
6
+ task :test => :spec
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'check_yo_spelling/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "check_yo_spelling"
8
+ spec.version = CheckYoSpelling::VERSION
9
+ spec.authors = ["Austin Fonacier", "Eric Kuecks", "Emily Lutz"]
10
+ spec.email = ["austin@spokeo.com", "ekuecks@ucla.edu", "emily.lutz@berkeley.edu"]
11
+ spec.summary = "Spell checker for U.S. cities and states"
12
+ spec.description = "Spell checker for U.S. cities and states"
13
+ spec.homepage = "https://github.com/spokeo/CheckYoSpelling"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency 'rspec', '~> 3.0.0.beta1'
24
+ end
data/data/.keep ADDED
File without changes
@@ -0,0 +1,553 @@
1
+ ---
2
+ - abanda
3
+ - abbeville
4
+ - adamsville
5
+ - addison
6
+ - akron
7
+ - alabaster
8
+ - albertville
9
+ - alexander city
10
+ - alexandria
11
+ - aliceville
12
+ - allgood
13
+ - altoona
14
+ - andalusia
15
+ - anderson
16
+ - anniston
17
+ - arab
18
+ - ardmore
19
+ - argo
20
+ - ariton
21
+ - arley
22
+ - ashford
23
+ - ashland
24
+ - ashville
25
+ - athens
26
+ - atmore
27
+ - attalla
28
+ - auburn
29
+ - autaugaville
30
+ - avon
31
+ - axis
32
+ - babbie
33
+ - baileyton
34
+ - bakerhill
35
+ - ballplay
36
+ - banks
37
+ - bay minette
38
+ - bayou la batre
39
+ - bear creek
40
+ - beatrice
41
+ - beaverton
42
+ - belgreen
43
+ - belk
44
+ - bellamy
45
+ - belle fontaine
46
+ - berry
47
+ - bessemer
48
+ - billingsley
49
+ - birmingham
50
+ - black
51
+ - blountsville
52
+ - blue ridge
53
+ - boaz
54
+ - boligee
55
+ - bon air
56
+ - boykin
57
+ - brantley
58
+ - brantleyville
59
+ - brent
60
+ - brewton
61
+ - bridgeport
62
+ - brighton
63
+ - brilliant
64
+ - bristow cove
65
+ - brook highland
66
+ - brookside
67
+ - brookwood
68
+ - broomtown
69
+ - brundidge
70
+ - butler
71
+ - calera
72
+ - calvert
73
+ - camden
74
+ - camp hill
75
+ - carbon hill
76
+ - carlisle rockledge
77
+ - carolina
78
+ - carrollton
79
+ - castleberry
80
+ - cedar bluff
81
+ - center point
82
+ - centre
83
+ - centreville
84
+ - chatom
85
+ - chelsea
86
+ - cherokee
87
+ - chickasaw
88
+ - childersburg
89
+ - choccolocco
90
+ - chunchula
91
+ - citronelle
92
+ - clanton
93
+ - clay
94
+ - clayhatchee
95
+ - clayton
96
+ - cleveland
97
+ - clio
98
+ - coaling
99
+ - coats bend
100
+ - coffee springs
101
+ - coffeeville
102
+ - coker
103
+ - collinsville
104
+ - colony
105
+ - columbia
106
+ - columbiana
107
+ - concord
108
+ - coosada
109
+ - cordova
110
+ - cottonwood
111
+ - county line
112
+ - courtland
113
+ - cowarts
114
+ - creola
115
+ - crossville
116
+ - cuba
117
+ - cullman
118
+ - cullomburg
119
+ - cusseta
120
+ - dadeville
121
+ - daleville
122
+ - daphne
123
+ - dauphin island
124
+ - daviston
125
+ - deatsville
126
+ - decatur
127
+ - deer park
128
+ - delta
129
+ - demopolis
130
+ - detroit
131
+ - dodge city
132
+ - dora
133
+ - dothan
134
+ - double springs
135
+ - douglas
136
+ - dozier
137
+ - dunnavant
138
+ - dutton
139
+ - east brewton
140
+ - east point
141
+ - eclectic
142
+ - edgewater
143
+ - edwardsville
144
+ - egypt
145
+ - elba
146
+ - elberta
147
+ - eldridge
148
+ - elkmont
149
+ - elmore
150
+ - emerald mountain
151
+ - enterprise
152
+ - epes
153
+ - eufaula
154
+ - eunola
155
+ - eutaw
156
+ - eva
157
+ - evergreen
158
+ - excel
159
+ - fairfield
160
+ - fairford
161
+ - fairhope
162
+ - fairview
163
+ - falkville
164
+ - fayette
165
+ - fayetteville
166
+ - five points
167
+ - flomaton
168
+ - florala
169
+ - florence
170
+ - foley
171
+ - forestdale
172
+ - forkland
173
+ - fort deposit
174
+ - fort payne
175
+ - fort rucker
176
+ - franklin
177
+ - fredonia
178
+ - frisco city
179
+ - fruitdale
180
+ - fruithurst
181
+ - fulton
182
+ - fultondale
183
+ - fyffe
184
+ - gadsden
185
+ - gainesville
186
+ - gallant
187
+ - gantt
188
+ - garden city
189
+ - gardendale
190
+ - gaylesville
191
+ - geiger
192
+ - geneva
193
+ - georgiana
194
+ - geraldine
195
+ - gilbertown
196
+ - glen allen
197
+ - glencoe
198
+ - glenwood
199
+ - good hope
200
+ - goodwater
201
+ - gordo
202
+ - gordon
203
+ - gordonville
204
+ - goshen
205
+ - graham
206
+ - grand bay
207
+ - grant
208
+ - grayson valley
209
+ - graysville
210
+ - greensboro
211
+ - greenville
212
+ - grimes
213
+ - grove hill
214
+ - gu win
215
+ - guin
216
+ - gulf shores
217
+ - gulfcrest
218
+ - guntersville
219
+ - gurley
220
+ - hackleburg
221
+ - hackneyville
222
+ - haleburg
223
+ - haleyville
224
+ - hamilton
225
+ - hammondville
226
+ - hanceville
227
+ - harpersville
228
+ - hartford
229
+ - hartselle
230
+ - harvest
231
+ - hatton
232
+ - hayden
233
+ - hayneville
234
+ - hazel green
235
+ - headland
236
+ - heath
237
+ - heflin
238
+ - helena
239
+ - henagar
240
+ - highland lake
241
+ - highland lakes
242
+ - hillsboro
243
+ - hissop
244
+ - hobson
245
+ - hobson city
246
+ - hodges
247
+ - hokes bluff
248
+ - hollins
249
+ - hollis crossroads
250
+ - holly pond
251
+ - hollywood
252
+ - holt
253
+ - holtville
254
+ - homewood
255
+ - hoover
256
+ - horn hill
257
+ - hueytown
258
+ - huguley
259
+ - huntsville
260
+ - hurtsboro
261
+ - hytop
262
+ - ider
263
+ - indian springs village
264
+ - irondale
265
+ - ivalee
266
+ - jackson
267
+ - jacksons' gap
268
+ - jacksonville
269
+ - jasper
270
+ - jemison
271
+ - joppa
272
+ - kansas
273
+ - kellyton
274
+ - kennedy
275
+ - killen
276
+ - kimberly
277
+ - kinsey
278
+ - kinston
279
+ - la fayette
280
+ - ladonia
281
+ - lake view
282
+ - lakeview
283
+ - lanett
284
+ - langston
285
+ - leeds
286
+ - leesburg
287
+ - leighton
288
+ - leroy
289
+ - lester
290
+ - level plains
291
+ - lexington
292
+ - libertyville
293
+ - lincoln
294
+ - linden
295
+ - lineville
296
+ - lipscomb
297
+ - lisman
298
+ - littleville
299
+ - livingston
300
+ - loachapoka
301
+ - lockhart
302
+ - locust fork
303
+ - lookout mountain
304
+ - louisville
305
+ - lowndesboro
306
+ - loxley
307
+ - luverne
308
+ - lynn
309
+ - macedonia
310
+ - madison
311
+ - madrid
312
+ - magnolia springs
313
+ - malcolm
314
+ - malvern
315
+ - maplesville
316
+ - marbury
317
+ - margaret
318
+ - marion
319
+ - maytown
320
+ - mcdonald chapel
321
+ - mcintosh
322
+ - mckenzie
323
+ - meadowbrook
324
+ - mentone
325
+ - meridianville
326
+ - midfield
327
+ - midland city
328
+ - midway
329
+ - mignon
330
+ - millbrook
331
+ - millerville
332
+ - millport
333
+ - millry
334
+ - minor
335
+ - mobile
336
+ - monroeville
337
+ - montevallo
338
+ - montgomery
339
+ - moody
340
+ - moores mill
341
+ - morris
342
+ - morrison crossroads
343
+ - mosses
344
+ - moulton
345
+ - moundville
346
+ - mount olive
347
+ - mount vernon
348
+ - mountain brook
349
+ - movico
350
+ - mulga
351
+ - munford
352
+ - muscle shoals
353
+ - myrtlewood
354
+ - nances creek
355
+ - napier field
356
+ - nauvoo
357
+ - nectar
358
+ - new brockton
359
+ - new hope
360
+ - new market
361
+ - new site
362
+ - new union
363
+ - newbern
364
+ - newton
365
+ - newville
366
+ - north courtland
367
+ - north johns
368
+ - northport
369
+ - notasulga
370
+ - oak grove
371
+ - oakman
372
+ - odenville
373
+ - ohatchee
374
+ - oneonta
375
+ - onycha
376
+ - opelika
377
+ - opp
378
+ - orange beach
379
+ - orrville
380
+ - our town
381
+ - owens cross roads
382
+ - oxford
383
+ - ozark
384
+ - paint rock
385
+ - panola
386
+ - parrish
387
+ - pelham
388
+ - pell city
389
+ - pennington
390
+ - penton
391
+ - perdido beach
392
+ - phenix city
393
+ - phil campbell
394
+ - pickensville
395
+ - piedmont
396
+ - pike road
397
+ - pinckard
398
+ - pine apple
399
+ - pine hill
400
+ - pine level
401
+ - pine ridge
402
+ - pinson
403
+ - pisgah
404
+ - pleasant grove
405
+ - pleasant groves
406
+ - point clear
407
+ - pollard
408
+ - powell
409
+ - prattville
410
+ - priceville
411
+ - prichard
412
+ - providence
413
+ - putnam
414
+ - ragland
415
+ - rainbow city
416
+ - rainsville
417
+ - ranburne
418
+ - ray
419
+ - red bay
420
+ - red level
421
+ - redland
422
+ - redstone arsenal
423
+ - reece city
424
+ - reeltown
425
+ - reform
426
+ - rehobeth
427
+ - repton
428
+ - ridgeville
429
+ - river falls
430
+ - riverside
431
+ - riverview
432
+ - roanoke
433
+ - robertsdale
434
+ - rock creek
435
+ - rock mills
436
+ - rockford
437
+ - rogersville
438
+ - rosa
439
+ - russellville
440
+ - rutledge
441
+ - saks
442
+ - samson
443
+ - sand rock
444
+ - sanford
445
+ - saraland
446
+ - sardis city
447
+ - satsuma
448
+ - scottsboro
449
+ - section
450
+ - selma
451
+ - selmont west selmont
452
+ - sheffield
453
+ - shelby
454
+ - shiloh
455
+ - shoal creek
456
+ - shorter
457
+ - silas
458
+ - silverhill
459
+ - sims chapel
460
+ - sipsey
461
+ - skyline
462
+ - slocomb
463
+ - smiths station
464
+ - smoke rise
465
+ - snead
466
+ - somerville
467
+ - south vinemont
468
+ - southside
469
+ - spanish fort
470
+ - spring garden
471
+ - springville
472
+ - spruce pine
473
+ - st florian
474
+ - st stephens
475
+ - standing rock
476
+ - steele
477
+ - sterrett
478
+ - stevenson
479
+ - stewartville
480
+ - sulligent
481
+ - sumiton
482
+ - summerdale
483
+ - susan moore
484
+ - sweet water
485
+ - sylacauga
486
+ - sylvan springs
487
+ - sylvania
488
+ - talladega
489
+ - talladega springs
490
+ - tallassee
491
+ - tarrant
492
+ - taylor
493
+ - theodore
494
+ - thomaston
495
+ - thomasville
496
+ - thorsby
497
+ - tidmore bend
498
+ - tillmans corner
499
+ - town creek
500
+ - toxey
501
+ - trafford
502
+ - triana
503
+ - trinity
504
+ - troy
505
+ - trussville
506
+ - tuscaloosa
507
+ - tuscumbia
508
+ - tuskegee
509
+ - twin
510
+ - underwood petersville
511
+ - union
512
+ - union springs
513
+ - uniontown
514
+ - uriah
515
+ - valley
516
+ - valley grande
517
+ - valley head
518
+ - vance
519
+ - vandiver
520
+ - vernon
521
+ - vestavia hills
522
+ - vina
523
+ - vincent
524
+ - vinegar bend
525
+ - vredenburgh
526
+ - wadley
527
+ - waldo
528
+ - walnut grove
529
+ - warrior
530
+ - waterloo
531
+ - waverly
532
+ - weaver
533
+ - webb
534
+ - wedowee
535
+ - weogufka
536
+ - west blocton
537
+ - west end cobb town
538
+ - west jefferson
539
+ - west point
540
+ - westover
541
+ - wetumpka
542
+ - whatley
543
+ - white hall
544
+ - white plains
545
+ - whitesboro
546
+ - wilsonville
547
+ - wilton
548
+ - winfield
549
+ - woodland
550
+ - woodstock
551
+ - woodville
552
+ - yellow bluff
553
+ - york