diminutivity 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in fanfeedrb.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ diminutivity (0.0.6)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ minitest (2.11.4)
10
+ minitest-matchers (1.2.0)
11
+ minitest (>= 2.5.0)
12
+ rake (0.9.2.2)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler
19
+ diminutivity!
20
+ minitest
21
+ minitest-matchers
22
+ rake
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Diminutivity #
2
+
3
+ Diminutivity is a short-name or diminutive name matcher US given names.
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require 'bundler'
2
+ require "rake/testtask"
3
+ Bundler::GemHelper.install_tasks
4
+ Rake::TestTask.new do |t|
5
+ t.libs << "test"
6
+ t.pattern = "test/**/test_*.rb"
7
+ end
8
+
9
+ task :default => :test
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "diminutivity"
4
+
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "diminutivity"
8
+ s.version = Diminutivity::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ["Matthew Jording"]
11
+ s.email = ["mjording@gmail.com"]
12
+ s.homepage = "https://github.com/mjording/diminutivity"
13
+ s.summary = %q{diminutive names and nicknames matcher}
14
+ s.description = %q{diminutive names and nicknames matcher. Currently US centric source mapping from http://code.google.com/p/nickname-and-diminutive-names-lookup/}
15
+
16
+ s.rubyforge_project = "diminutivity"
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+
23
+ s.add_development_dependency 'rake'
24
+ s.add_development_dependency 'bundler'
25
+ s.add_development_dependency 'minitest'
26
+ s.add_development_dependency 'minitest-matchers'
27
+ end
@@ -0,0 +1,24 @@
1
+ require 'csv'
2
+ require 'pathname'
3
+
4
+ module Diminutivity
5
+ VERSION = "0.0.6"
6
+ NAMEFILE = "lib/names1.1.csv"
7
+ class Matcher
8
+ attr_accessor :names,:namefile
9
+
10
+ def initialize(namefile=NAMEFILE)
11
+ self.names = {}
12
+ self.namefile = namefile
13
+ CSV.read(Pathname.new(__FILE__).parent.join("../#{namefile}")).each do |row|
14
+ row.each do |name|
15
+ names[name] = row - [name]
16
+ end
17
+ end
18
+ end
19
+
20
+ def match(name,source_name)
21
+ names[name].include? source_name
22
+ end
23
+ end
24
+ end
data/lib/names1.1.csv ADDED
@@ -0,0 +1,669 @@
1
+ aaron,ron
2
+ abel,abe
3
+ abigail,abbie,abby,gail
4
+ abner,abbie,abby
5
+ abraham,abe,abram
6
+ adaline,ada,adela
7
+ albert,bert
8
+ adeline,addie,linney
9
+ adolphus,ado,adolph,dolph
10
+ agatha,aggie
11
+ agnes,aggy,ann,nessie
12
+ alanson,al,lanson
13
+ alastair,al
14
+ albert,al,bert
15
+ alberta,allie,berta
16
+ aleva,leve,levy
17
+ alexander,alec,alex,lex
18
+ alexandra,alexa,lexa
19
+ alexandria,alexa,dria
20
+ alexis,lexi
21
+ alfred,al,alf,alfie,fred
22
+ alfreda,alfy,frieda
23
+ alicia,ally
24
+ alison,ali
25
+ almena,allie,mena
26
+ almina,minnie
27
+ alonzo,al,alphonzo,lon,lonnie,lonzo
28
+ alphinias,alphus
29
+ almira,myra,mira
30
+ alverta,vert,virdie
31
+ alyssa,ally,lyssa
32
+ alzada,zada
33
+ amanda,manda,mandy
34
+ ambrose,brose
35
+ amelia,amy,emily,mel,melia,millie
36
+ anastasia,ana,stacy
37
+ andrea,andrew,drea,rea
38
+ andrew,andy,drew
39
+ angela,angel,angelica,angie
40
+ angelica,angel,angie
41
+ angelina,lina,angel
42
+ angeline,lina,angel
43
+ anna,anne,annie,ann
44
+ anne,annie,ann
45
+ annie,ann,anna
46
+ annette,anna,nettie
47
+ anselm,anse,ance,ansel,selma
48
+ anthony,tony,antoinette,antonia
49
+ antoinette,antonia,net,nettie,tonie
50
+ antonia,nettie,antone,anthony
51
+ appoline,appie,appy
52
+ aquilla,quil,quillie
53
+ arabella,ara,bella,belle
54
+ araminta,armida,middie,minty,ruminta
55
+ archibald,archie,baldie
56
+ ariadne,arie
57
+ arielle,arie
58
+ archilles,kill,killis
59
+ aristotle,telly
60
+ arizona,ona,onie
61
+ arlene,lena
62
+ armanda,mandy
63
+ armilda,milly
64
+ arminda,mindie
65
+ arminta,minite,minnie
66
+ arnold,arnie
67
+ artelepsa,epsey
68
+ artemus,art
69
+ arthur,art
70
+ arthusa,thursa
71
+ arzada,zaddi
72
+ aubrey,bree
73
+ audrey,dee
74
+ augusta,aggy,augie,gus,guss,gussie
75
+ augustina,aggy,augie,gus,guss,gussie,ina,tina,augustus
76
+ augustine,aggy,augie,gus,guss,gussie,ina,tina,augustus
77
+ augustus,gus,gustus,augusta,gustie
78
+ aurelia,aurilla,orilla,ora,ree,rilly
79
+ avarilla,rilla
80
+ barbara,babs,barb,barbie,barby,bobbie,bonnie
81
+ barbery,barbara
82
+ barnabas,barney
83
+ bernard,barney,bernie
84
+ bartholomew,bart,bartel,barth,bat
85
+ barticus,bart
86
+ bazaleel,basil
87
+ beatrice,bea,trisha,trissy,trixie
88
+ bedelia,delia,bridgit
89
+ belinda,bell,belle,linda
90
+ benedict,bennett
91
+ benjamin,ben,benjie,bennie,jamie
92
+ bertram,bert
93
+ bertha,bertie
94
+ bethena,beth,thaney
95
+ beverly,bev
96
+ bezaleel,zeely
97
+ blanche,bea
98
+ boetius,bo
99
+ brenda,brandy
100
+ bridget,biddy,bridie,brie,delia
101
+ brian,bryan,bryant
102
+ brittany,britt
103
+ caldonia,calliedona
104
+ caleb,cal
105
+ california,callie
106
+ calista,kissy
107
+ calpurnia,cally
108
+ calvin,cal
109
+ cameron,cam
110
+ camille,cammy,millie
111
+ campbell,cam
112
+ candace,candy,dacey
113
+ carlotta,lottie
114
+ carmon,carm,cammie,charm
115
+ carmellia,mellia
116
+ caroline,caddie,carol,carrie,cassie,lena,lynn
117
+ carolyn,caddie,carol,carrie,cassie,lena,lynn
118
+ carthaette,etta,etty
119
+ casper,jasper
120
+ cassandra,cass,cassie,cassey,sandi,sandra
121
+ caswell,cass
122
+ catherine,cathy,karen,katharine,katie,kathleen,kay,kit,kittie
123
+ cathleen,catherine
124
+ cecilia,celia,cissy,cecil
125
+ celeste,celia,lessie
126
+ celinda,linda,lindy,lynn
127
+ charity,chat
128
+ charles,chuck
129
+ caroline,charlotte
130
+ charlotte,car,carlotta,letty,lotta,lottie
131
+ chauncey,chance
132
+ chester,chet
133
+ christian,chris
134
+ christine,chris,crissy,christy,tina
135
+ christopher,chris
136
+ cicely,cilla
137
+ cinderella,arilla,cindy,rilla,rella
138
+ clarissa,clara,claire,clarice
139
+ clarence,clay
140
+ clarissa,clara,clare,cissy
141
+ claudia,claud
142
+ cleatus,cleat
143
+ clementine,clem,clement
144
+ clifford,cliff,ford
145
+ clifton,cliff
146
+ cole,colie
147
+ columbus,col
148
+ constance,connie,constant
149
+ cordelia,cordy,delia
150
+ corinne,cora
151
+ cornelia,conny,corny,neely,nelle,nelly
152
+ cornelius,neil,neely,cornelia
153
+ courtney,corky,court,curt
154
+ crystal,chris,crys,tal,stal
155
+ cynthia,cindy,sina
156
+ cyrus,cy
157
+ daisy,margaret
158
+ daniel,dan,danny,dank
159
+ danielle,dani,ellie
160
+ daphne,daph,daphie
161
+ david,davy,vida
162
+ deanne,ann,dee
163
+ deborah,deb,debi,debbie,debby
164
+ delbert,bert,del
165
+ deidre,deedee
166
+ delia,cordelia,fidelia,delius
167
+ delilah,dell,della,lil,lila
168
+ dell,adela,adelaide,delilah
169
+ della,adela,adelaide,delilah
170
+ delores,dee,dodie,dodie,lola
171
+ delpha,philadelphia
172
+ delphine,del,delf,delphi
173
+ demaris,dea,maris,mary
174
+ demerias,dea,maris,mary
175
+ democrates,mock
176
+ denise,dennis
177
+ deuteronomy,duty
178
+ diane,di,dicey,didi
179
+ diana,di,dicey,didi
180
+ dickson,dick
181
+ dominic,dom,nick,nicky
182
+ dorinda,dora,dorothea
183
+ doris,dora
184
+ dorothea,doda,dora
185
+ dorothy,dee,dolly,dorothea,dot
186
+ dotha,dotty
187
+ douglas,doug
188
+ drusilla,silla
189
+ duncan,dunk
190
+ ebenezer,eb,eben,eber
191
+ edith,dicey,edie
192
+ edmund,ed,ned,ted
193
+ edna,edny
194
+ edward,ed,ned,ted
195
+ edwina,edwin
196
+ egbert,bert,burt
197
+ eighta,athy
198
+ eileen,helen
199
+ elaine,helen,lainie
200
+ elbert,albert
201
+ elbertson,elbert,bert
202
+ eleanor,elaine,ella,ellen,helen,lanna
203
+ leonora,nell,nellie,nora
204
+ elena,helen
205
+ elias,eli
206
+ elijah,eli,lige
207
+ eliphalel,life
208
+ elisa,lisa
209
+ elisha,eli,ellis,lish
210
+ eliza,elizabeth
211
+ elizabeth,bess,bessie,beth,bethia,betsy,bette,betty,dicey,elis,elsie,ibby,libby,liz,liza,lizabeth,lizzie,tess
212
+ ella,eleanor,gabriella,helen,luella
213
+ ellie,eleanor,gabriella,helen,luella
214
+ ellen,helen,nell,nellie
215
+ ellender,ellen,helen,nellie
216
+ elminie,minnie
217
+ elmira,mira
218
+ elnora,nora
219
+ eloise,heloise,louise
220
+ elsie,alice,elizabeth
221
+ elwood,ells,elly
222
+ elvira,elvie
223
+ elysia,lisa
224
+ emanuel,manny,manuel
225
+ emeline,emmer,emily,emmy,lina,millie
226
+ emil,emily
227
+ emily,emma,emmie,erma
228
+ ephraim,eph
229
+ erasmus,rasmus,raze
230
+ eric,rick,ricky,erica
231
+ ernest,ernie,ernestine
232
+ earnest,ernie,ernestine
233
+ ernestine,erna,tina,teeny,ernest
234
+ erwin,irwin
235
+ essy,es
236
+ eseneth,senie
237
+ estella,essy,stella
238
+ esther,essie,hester
239
+ eudicy,dicey
240
+ eudora,dora
241
+ eudoris,dosie,dossie
242
+ eugene,gene,eugenia,euy,gene,genie,jenny
243
+ eunice,nicie
244
+ euphemia,effie,effy
245
+ eurydice,dicey
246
+ eustacia,stacia,stacy
247
+ evangeline,evan,ev,vangie
248
+ evelyn,ev,eve,evelina
249
+ ezekiel,ez,zeke
250
+ experience,exie
251
+ faith,fay
252
+ fidelia,delia,delius
253
+ felicia,fel,feli,felix
254
+ felicity,flick,tick
255
+ ferdinand,ferdie,fred
256
+ ferdinando,ferdie,fred,nando
257
+ florence,flo,flora,florrie,floss,flossie
258
+ floyd,lloyd
259
+ frances,fan,fanny,fran,franie,france,frankie,franz,sis,francis
260
+ francis,frank,frances
261
+ franklin,frank
262
+ frederick,derick,fred,fredric,freddie,frish,fritz,frederica,rick
263
+ frederica,frederick
264
+ gabriel,gabe,gabby,garbrielle
265
+ gabrielle,ella,gabbie,gabriel
266
+ genevieve,gency,jinsey,jenny
267
+ geoffrey,geoff
268
+ george,jorge,georgiana
269
+ georgia,georgiana,george
270
+ gerald,jerry,geraldine,gerry
271
+ geraldine,dina,gerri,gerrie,jerry,deannie,gerald
272
+ gerhardt,gay
273
+ gertrude,gatty,gertie,trudy
274
+ gilbert,bert,bertie,gib,gil,wilber
275
+ gloria,glory
276
+ governor,govie
277
+ greenberry,berry,green
278
+ gretchen,margaret
279
+ gregory,greg
280
+ griselda,grissel
281
+ gustavus,gus
282
+ gwendolyn,genny,gwen,wendy
283
+ hamilton,ham
284
+ hannah,anna,hattie,nan,nanny,susannah
285
+ heather,hetty
286
+ herman,harman,dutch
287
+ harold,hal,harry
288
+ harriet,hatty,hattie,harry
289
+ harry,harold,henry
290
+ haseltine,hassie
291
+ helen,aileen,eileen,elaine,eleanor,ellen,lena,nell,nellie
292
+ helena,aileen,eileen,elaine,eleanor,ellen,lena,nell,nellie
293
+ heloise,eloise,lois
294
+ henrietta,etta,hank,hetty,nettie,retta,henry
295
+ henry,hal,hank,harry,hen,hence
296
+ herbert,bert,herb
297
+ hester,estherhessy,hetty
298
+ hezekiah,hez,ki,ky
299
+ honora,honey,nora,norah,norry
300
+ horace,harry,horatio
301
+ hortense,harty,tensey
302
+ hosea,hosey,hosie
303
+ howard,hal,howie
304
+ hubert,hugh,hugo,bert
305
+ ian,john
306
+ ignatius,iggy,nace
307
+ ignatzio,iggy,nace,naz
308
+ immanuel,emmanuel,manuel
309
+ india,indie,indy
310
+ inez,agnes
311
+ iona,onnie
312
+ irene,rena,rennie
313
+ irvin,irving
314
+ irwin,erwin
315
+ isaac,ike,zeke
316
+ isabelle,bella,belle,cybilla,elizabeth,ib,issy,nib,sabe,sabra,sibella,tibbie
317
+ isabella,bella,belle,cybilla,elizabeth,ib,issy,nib,sabe,sabra,sibella,tibbie
318
+ isadora,dora,issy,isidore
319
+ isaiah,zadie,zay
320
+ isidore,izzy,isadora
321
+ iva,ivy
322
+ ivan,john
323
+ jacob,jake
324
+ jacqueline,jackie,jack
325
+ jackson,jack
326
+ jahoda,hoda,hodie,hody
327
+ james,jim,jeb
328
+ jane,janet,janie,jessie,jenny,jinsey,joan,joanna
329
+ jannett,nettie
330
+ jasper,casper,jap
331
+ jayme,jay
332
+ jean,jennie,joanna
333
+ jeanette,jeanne,nettie
334
+ jedediah,diah,dyer,jed
335
+ jeffrey,jeff
336
+ jeffery,jeff
337
+ jehu,gee,hugh
338
+ jemima,jemma,mima,mimi
339
+ jennet,jenny,jessie
340
+ jennifer,jan,jenny
341
+ jeremiah,jeremy,jerry
342
+ jerita,rita
343
+ jessica,jess,jesse,jessie
344
+ johannes,johnjohnny,jonathan
345
+ jonathan,john,jon
346
+ joseph,joe,joey
347
+ josephine,jo,joey,josey,joseie
348
+ josetta,jettie
349
+ joshua,josh
350
+ joyce,joy
351
+ juanita,nita
352
+ judah,jude,juder
353
+ judith,juda,jude,judi,judie,judy
354
+ julia,jill,julie,juliet,julian,julius,jule
355
+ june,junius
356
+ karonhappuck,carrie,karen,karon,happy
357
+ katarina,catherine,tina
358
+ kathleen,cathy,karen,katharine,katie,kathleen,kay,kit,kittie
359
+ kayla,kay,kay
360
+ kendra,kay,kenny,kenj,kenji
361
+ keziah,kezzie,kezzy,kid,kizzy
362
+ kristel,kris
363
+ kristine,kissy,kris,krissy
364
+ kristopher,chris,kris
365
+ lafayette,fate,fayette,left,leffie,leffy
366
+ laodicia,dicy,cenia
367
+ lauren,laurie,ren
368
+ laurinda,laura,lawrence
369
+ lauryn,laurie
370
+ laveda,veda
371
+ laverne,verna,vernon
372
+ lavinia,vina,viney,vonnie,wyncha
373
+ lavonia,vina,viney,vonnie,wyncha
374
+ louvinia,vina,viney,vonnie,wyncha
375
+ lawrence,larry,lars,laurence,lawrie,lon,lorry,laura
376
+ leanne,annie,lea
377
+ lecurgus,curg
378
+ lemuel,lem
379
+ lena,leenlina
380
+ leonard,leo,leon,leona
381
+ leonidas,lee,leon
382
+ leonore,elenor,honor,nora
383
+ leonora,elenor,honor,nora
384
+ leroy,lee,roy
385
+ leslie,les,lester
386
+ letitia,lettie,lettice,titia,tish
387
+ levicy,vicy
388
+ levone,von
389
+ lavonne,von
390
+ lillian,lil,lila,lilly,lolly,odie
391
+ lincoln,link
392
+ lionel,leon
393
+ littleberry,berry,l.b.,little
394
+ lois,heloise,louise
395
+ loretta,etta,laura,lorrie,retta
396
+ lorraine,lorrie
397
+ louis,lou
398
+ louise,eliza,eloise,issie,lois,lou,lulu,louis
399
+ lucia,lucy
400
+ lucas,luke
401
+ lucille,ceall,cille,lucy
402
+ lucina,sinah
403
+ lucinda,cindy,lucy
404
+ lucretia,creasey
405
+ luella,ella
406
+ lunetta,nettie
407
+ lurana,lura
408
+ mabel,amabel,mehitabel
409
+ mac,mc
410
+ mack,mac,mc
411
+ mackenzie,kenzy,mac,mack
412
+ madeline,lena,maddie,madge,maggie,maud,middy
413
+ madison,maddy,mattie
414
+ magdalena,lena,maggie
415
+ mahala,haley,huldah
416
+ malachi,mally
417
+ malcolm,mac,mal,malc
418
+ malinda,lindy
419
+ manerva,eve,minerva,nerva,nervie
420
+ manoah,noah
421
+ manola,nonnie
422
+ manuel,emanuel,manny
423
+ marcus,mark,marcia
424
+ margaret,daisy,greta,madge,maggie,maisie,marge,margo,meg,megan,metta,midge,peggie
425
+ margarita,rita,daisy,greta,madge,maggie,maisie,marge,margo,meg,megan,metta,midge,peggie
426
+ mariah,maria,mary
427
+ marie,mae
428
+ marion,mary
429
+ marian,marianna,marion
430
+ marilyn,mary
431
+ marissa,rissa
432
+ marjorie,madge,marge,margie
433
+ marsha,marcie,mary
434
+ martha,marnie,mart,marty,mat,mattie,patsy,patty
435
+ martine,tine
436
+ marvin,marv,merv,mervyn
437
+ mary,mae,mamie,maria,mariah,marie
438
+ marietta,marion,maureen,mary,mae,mamie,maria,mariah,marie,may,mercy,minnie,mitzi,mollie,molly,polly
439
+ matthew,matt,matthias
440
+ mathilda,patty,tillie
441
+ matilda,mat,matty,maud,tilda,tillie
442
+ marguerite,peggy
443
+ maureen,mary
444
+ maurice,maury,morris,mossie
445
+ mavine,mave
446
+ mavery,mave
447
+ maxine,max
448
+ may,mae
449
+ mckenna,ken,kenna,meaka
450
+ medora,dora
451
+ megan,meg
452
+ mehitabel,hetty,mabel,mitty
453
+ melanie,mellie
454
+ melchizedek,dick,zadock
455
+ melinda,linda,lindy,mel
456
+ melissa,alyssa,lisa,mel,milly,missy,melissa,missa
457
+ mellony,mellia
458
+ melody,lodi
459
+ melvin,mel
460
+ melvina,vina
461
+ mercedes,merci,mercy,sadie
462
+ micajah,cage
463
+ michelle,mickey,shelly
464
+ mildred,mell,milly,mimi
465
+ millicent,milly
466
+ minerva,mina,minnie,nerva,nervie
467
+ miranda,mandy,mari,mira,randy
468
+ miriam,mary,mitzi
469
+ mitchell,michael,mitch
470
+ mitzi,mary
471
+ monet,nettie
472
+ monica,monna,monnie
473
+ monteleon,monte
474
+ montesque,monty
475
+ montgomery,gum,monty
476
+ mortimer,mort
477
+ moses,amos,mose,moss
478
+ muriel,mur
479
+ myrtle,mert,myrt,myrti
480
+ nadine,deedee,nada
481
+ nancy,alsoamalename
482
+ nancy,agnes,ann,nan,nance,nannie
483
+ naomi,omi
484
+ napoleon,leon,nap,poley,pony
485
+ natalie,nattie,nettie
486
+ natasha,nat,tasha
487
+ nathaniel,jonathan,nat,nate,natty,nathan,tan
488
+ nelson,nels
489
+ nicholas,nick,nicky
490
+ nicodemus,nick
491
+ nicole,cole,nikki,nole
492
+ nora,nonie
493
+ nowell,noel
494
+ obadiah,diah,dyer,obe,obed,obie
495
+ obedience,beda,beedy,biddie,obed
496
+ octavia,tave,tavia
497
+ odell,odo
498
+ olive,ollie
499
+ olivia,livia,olive,oliver
500
+ oliver,ollie
501
+ onicyphorous,cy,cyphorus,one,osaforum,osaforus,syphorous
502
+ orilla,ora,rilly
503
+ orlando,roland
504
+ orphelia,phelia
505
+ oswald,ossy,waldo
506
+ otis,ode,ote
507
+ pamela,pam
508
+ pandora,dora
509
+ parthenia,parsuny,pasoonie,phenie,teeny
510
+ patience,pat,patty
511
+ patricia,pat,patsy,patty,tricia,trish,trixie,patrick
512
+ patrick,paddy,pat,patsy,peter,patricia
513
+ paul,paula,pauline,polly
514
+ pauline,polly
515
+ penelope,neppie,penny
516
+ percival,perce,percy
517
+ peregrine,perry
518
+ permelia,mellie,melly,milly
519
+ pernetta,nettie
520
+ persephone,seph,sephy
521
+ petronella,nellie
522
+ pheriba,ferbie,pherbia
523
+ pheney,josephine
524
+ philip,filip,phil,pip,phyllis,philippa
525
+ philadelphia,delphia
526
+ philander,fie
527
+ philipina,phoebe,penie
528
+ philomena,menaalmena
529
+ phoebe,fifi
530
+ pinckney,pink
531
+ pleasant,ples
532
+ pocahontas,pokey
533
+ posthuma,humey
534
+ prescott,pres,scott
535
+ priscilla,cil,cilla,ciller,prissy,siller
536
+ providence,provy
537
+ prudence,densy,prudy
538
+ rachel,rae,ray,raech
539
+ randolph,dolph,rafe,randall,randy
540
+ raphael,raff
541
+ ramona,mona
542
+ raymond,ray
543
+ rebecca,becca,beck,beckie,becky,reba
544
+ regina,gina,ray
545
+ reginald,reg,reggie,rex,reynold
546
+ reuben,rube,ruby
547
+ reynold,reginald
548
+ rhoda,rodie
549
+ rhodella,della
550
+ rhyna,rhynie
551
+ richard,dick,richie,rick,ritchie
552
+ robert,dob,dobbin,bob,bobby,rob,robin,rupert,roberta
553
+ roberta,bert,bobbie,robbie,robert
554
+ roderick,erick,rod,rickie
555
+ roger,hodge,hodgekin
556
+ roland,orlando,rowland
557
+ ronald,ron,ronnie
558
+ roscoe,ross
559
+ rosina,sina
560
+ roxane,rox,roxie
561
+ rudolph,dolph,rolf,rollo,rudy
562
+ russell,russ
563
+ ryan,ry
564
+ sabrina,bri,brina,sabby,sabra
565
+ salome,loomie
566
+ salvador,sal
567
+ samantha,mantha,sammy,sam
568
+ samson,sam
569
+ sampson,sam
570
+ samuel,sam,sonny
571
+ samyra,myra
572
+ sandra,alexandra,sandy
573
+ sanford,sandy
574
+ sarah,cera,sadie,sal,sallie,sara,sukie,surry
575
+ sarilla,silla
576
+ serena,rena
577
+ savannah,anna,vannie
578
+ sebastian,sebby
579
+ selma,anselm
580
+ serena,rena
581
+ serilla,rilla
582
+ shaina,sha,shay,sha,sha
583
+ sharon,sha,shay
584
+ sheila,cecilia
585
+ sheldon,shelly
586
+ sheridan,dan,danny
587
+ sidney,sid
588
+ sibbilla,sibbell,sybill,sibbie
589
+ sigfrid,sid
590
+ sigfired,sid
591
+ sigismund,sig
592
+ silas,si
593
+ silence,liley
594
+ silvester,si,syl,sly,vest,vester
595
+ simeon,sim,simon
596
+ socrates,crate
597
+ solomon,sal,salmon,sol,solly,zolly
598
+ sondra,dre,sonnie
599
+ sophronia,frona,fronia,sophia
600
+ stephanie,annie,steph,stephie,stephen
601
+ stephen,step,steve,stevie,steven
602
+ submit,mitty
603
+ sullivan,sully
604
+ susannah,hannah,sudy,sue,sukey,susan,susie,suzanne
605
+ suzanne,susie,suki,sue
606
+ sybill,sibbie
607
+ sydney,sid
608
+ sylvanus,sly,syl
609
+ sylvester,si,syl,sly,vest,vester
610
+ tabitha,tabby
611
+ tamarra,tammy
612
+ tanafra,tanny
613
+ tasha,tash,tashie
614
+ temperance,tempy
615
+ terence,terry
616
+ teresa,terry,tess,tessie,tyrza
617
+ thaddeus,tad,thad
618
+ theodora,dora
619
+ theodore,dorey,ted,theotric,theodora
620
+ theodosia,dosia,theo,theodosius
621
+ theophilus,ophi
622
+ theotha,otha
623
+ theresa,terry,tess,tessie,thursa,ticy,tracy,trissy
624
+ thomas,thom,tom
625
+ thomasa,tamzine
626
+ tiffany,tiff,tiffy
627
+ tilford,tillie
628
+ timothy,tim
629
+ tobias,tobe,toby,bias
630
+ tranquilla,trannie,quilla
631
+ unice,eunice,nicie
632
+ uriah,ury
633
+ ursula,sula,sulie
634
+ valentina,felty,val,vallie
635
+ valentine,felty,val,vallie
636
+ valerie,val
637
+ vanburen,buren
638
+ vandalia,vannie
639
+ vanessa,nessa,van,vannie
640
+ vernisee,nicey
641
+ veronica,franky,ronnie,ronna,vonnie
642
+ victor,vic,vick
643
+ victoria,toria,torrie,tory,vicki,victor
644
+ vincent,vin,vince,vinnie,vinny
645
+ viola,ola,vi
646
+ violetta,lettie
647
+ virginia,ginger,ginny,jane,jennie,jenny,jinie,virgie
648
+ vivian,vi,viv
649
+ waldo,oswald
650
+ wallace,wallie,wally
651
+ walter,wat
652
+ webster,webb
653
+ wendy,wen
654
+ wilber,wib
655
+ wilfred,fred,willie
656
+ wilhelmina,billie,helmie,mina,minnie,willie,wilma,wilhelm,william
657
+ william,bill,bud,will,willie
658
+ willis,bill,willy
659
+ wilda,willie
660
+ wilma,billiewilhelm,william
661
+ winfield,field,win,winny
662
+ winifred,winnie
663
+ winton,wint
664
+ woodrow,woody
665
+ yeona,ona,onie
666
+ yulan,lan,yul
667
+ yvonne,vonna
668
+ zachariah,zach,zacharias,zachary,zeke
669
+ zedediah,zed
@@ -0,0 +1,8 @@
1
+ aaron,ron
2
+ abel,abe
3
+ abigail,abbie,abby,gail
4
+ abner,abbie,abby
5
+ abraham,abe,abram
6
+ adaline,ada,adela
7
+ albert,bert
8
+ matthew,matt
@@ -0,0 +1,4 @@
1
+ $:.push File.expand_path("../../lib", __FILE__)
2
+ require "diminutivity"
3
+ require "minitest/autorun"
4
+
@@ -0,0 +1,12 @@
1
+ require "minitest_helper"
2
+
3
+ class TestDiminutivity < MiniTest::Unit::TestCase
4
+ def test_sanity
5
+ assert Diminutivity::VERSION
6
+ end
7
+
8
+ def test_match
9
+ matchr = Diminutivity::Matcher.new('test/fixtures/namefile.csv')
10
+ assert matchr.match('matt', 'matthew')
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: diminutivity
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matthew Jording
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70200254959520 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70200254959520
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70200254959000 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70200254959000
36
+ - !ruby/object:Gem::Dependency
37
+ name: minitest
38
+ requirement: &70200254958100 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70200254958100
47
+ - !ruby/object:Gem::Dependency
48
+ name: minitest-matchers
49
+ requirement: &70200254957560 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70200254957560
58
+ description: diminutive names and nicknames matcher. Currently US centric source mapping
59
+ from http://code.google.com/p/nickname-and-diminutive-names-lookup/
60
+ email:
61
+ - mjording@gmail.com
62
+ executables: []
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - !binary |-
67
+ R2VtZmlsZQ==
68
+ - !binary |-
69
+ R2VtZmlsZS5sb2Nr
70
+ - !binary |-
71
+ UkVBRE1FLm1k
72
+ - !binary |-
73
+ UmFrZWZpbGU=
74
+ - !binary |-
75
+ ZGltaW51dGl2aXR5LmdlbXNwZWM=
76
+ - !binary |-
77
+ bGliL2RpbWludXRpdml0eS5yYg==
78
+ - !binary |-
79
+ bGliL25hbWVzMS4xLmNzdg==
80
+ - !binary |-
81
+ dGVzdC9maXh0dXJlcy9uYW1lZmlsZS5jc3Y=
82
+ - !binary |-
83
+ dGVzdC9taW5pdGVzdF9oZWxwZXIucmI=
84
+ - !binary |-
85
+ dGVzdC90ZXN0X2RpbWludXRpdml0eS5yYg==
86
+ homepage: https://github.com/mjording/diminutivity
87
+ licenses: []
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project: diminutivity
106
+ rubygems_version: 1.8.10
107
+ signing_key:
108
+ specification_version: 3
109
+ summary: diminutive names and nicknames matcher
110
+ test_files: []