randomperson 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Manifest +38 -38
- data/Rakefile +10 -8
- data/lib/{Choice.rb → randomperson/Choice.rb} +26 -12
- data/lib/{Generator.rb → randomperson/Generator.rb} +0 -5
- data/lib/{Name.rb → randomperson/Name.rb} +0 -2
- data/lib/randomperson/Names/AmericanFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/AmericanLast.rb +23 -0
- data/lib/randomperson/Names/AmericanMaleFirst.rb +21 -0
- data/lib/randomperson/Names/AmericanSuffix.rb +23 -0
- data/lib/randomperson/Names/AnyLast.rb +21 -0
- data/lib/randomperson/Names/BasqueLast.rb +23 -0
- data/lib/randomperson/Names/BritishPrefix.rb +28 -0
- data/lib/randomperson/Names/BritishSuffix.rb +29 -0
- data/lib/randomperson/Names/EnglishFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/EnglishLast.rb +21 -0
- data/lib/randomperson/Names/EnglishMaleFirst.rb +20 -0
- data/lib/randomperson/Names/ScottishFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/ScottishLast.rb +21 -0
- data/lib/randomperson/Names/ScottishMaleFirst.rb +20 -0
- data/lib/randomperson/Names/SpanishFemaleFirst.rb +22 -0
- data/lib/randomperson/Names/SpanishLast.rb +25 -0
- data/lib/randomperson/Names/SpanishMaleFirst.rb +23 -0
- data/lib/randomperson/Names/SwedishFemaleFirst.rb +23 -0
- data/lib/randomperson/Names/SwedishLast.rb +23 -0
- data/lib/randomperson/Names/SwedishMaleFirst.rb +22 -0
- data/lib/randomperson/Names/ThaiFirst.rb +24 -0
- data/lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb +20 -0
- data/lib/randomperson/Names/ThaiRomanisedLast.rb +21 -0
- data/lib/randomperson/Names/ThaiRomanisedMaleFirst.rb +20 -0
- data/lib/randomperson/Names/WelshFemaleFirst.rb +21 -0
- data/lib/randomperson/Names/WelshLast.rb +22 -0
- data/lib/randomperson/Names/WelshMaleFirst.rb +21 -0
- data/lib/{Person.rb → randomperson/Person.rb} +0 -2
- data/lib/{Ratio.rb → randomperson/Ratio.rb} +0 -2
- data/lib/{ext → randomperson/ext}/Array.rb +0 -0
- data/lib/{ext → randomperson/ext}/Date.rb +0 -0
- data/lib/{ext → randomperson/ext}/Enumerable.rb +0 -0
- data/lib/{ext → randomperson/ext}/Hash.rb +0 -0
- data/lib/{ext → randomperson/ext}/Kernel.rb +0 -0
- data/lib/{ext → randomperson/ext}/Set.rb +0 -0
- data/lib/randomperson.rb +11 -8
- data/randomperson.gemspec +4 -4
- data/t/Generator.t +28 -24
- data.tar.gz.sig +0 -0
- metadata +79 -79
- metadata.gz.sig +0 -0
- data/lib/NameFiles/AmericanLast.rb +0 -22
- data/lib/NameFiles/AmericanMaleFirst.rb +0 -21
- data/lib/NameFiles/AmericanSuffix.rb +0 -25
- data/lib/NameFiles/AnyLast.rb +0 -21
- data/lib/NameFiles/BasqueLast.rb +0 -23
- data/lib/NameFiles/BritishPrefix.rb +0 -29
- data/lib/NameFiles/BritishSuffix.rb +0 -30
- data/lib/NameFiles/EnglishFemaleFirst.rb +0 -21
- data/lib/NameFiles/EnglishLast.rb +0 -22
- data/lib/NameFiles/EnglishMaleFirst.rb +0 -21
- data/lib/NameFiles/ScottishFemaleFirst.rb +0 -21
- data/lib/NameFiles/ScottishLast.rb +0 -22
- data/lib/NameFiles/ScottishMaleFirst.rb +0 -21
- data/lib/NameFiles/SpanishFemaleFirst.rb +0 -41
- data/lib/NameFiles/SpanishLast.rb +0 -24
- data/lib/NameFiles/SpanishMaleFirst.rb +0 -41
- data/lib/NameFiles/SwedishFemaleFirst.rb +0 -23
- data/lib/NameFiles/SwedishLast.rb +0 -22
- data/lib/NameFiles/SwedishMaleFirst.rb +0 -21
- data/lib/NameFiles/ThaiFirst.rb +0 -23
- data/lib/NameFiles/ThaiRomanisedFemaleFirst.rb +0 -21
- data/lib/NameFiles/ThaiRomanisedLast.rb +0 -21
- data/lib/NameFiles/ThaiRomanisedMaleFirst.rb +0 -20
- data/lib/NameFiles/WelshFemaleFirst.rb +0 -22
- data/lib/NameFiles/WelshLast.rb +0 -23
- data/lib/NameFiles/WelshMaleFirst.rb +0 -22
- data/lib/Names.rb +0 -14
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
v0.0.5 Moved into new dir structure to avoid filename collisions in LOAD_PATH. Greatly improved American names.
|
2
|
+
|
3
|
+
v0.0.4 Removed shebangs and requires that were causing warnings. Added reset methods to Choice.
|
4
|
+
|
1
5
|
v0.0.3. Fixed some silly bugs within NameFiles
|
2
6
|
|
3
7
|
v0.0.2. Added support for Welsh, Scottish and Swedish names
|
data/Manifest
CHANGED
@@ -3,43 +3,43 @@ Manifest
|
|
3
3
|
README
|
4
4
|
Rakefile
|
5
5
|
gem-public_cert.pem
|
6
|
-
lib/Choice.rb
|
7
|
-
lib/Generator.rb
|
8
|
-
lib/Name.rb
|
9
|
-
lib/NameFiles/AmericanLast.rb
|
10
|
-
lib/NameFiles/AmericanMaleFirst.rb
|
11
|
-
lib/NameFiles/AmericanSuffix.rb
|
12
|
-
lib/NameFiles/AnyLast.rb
|
13
|
-
lib/NameFiles/BasqueLast.rb
|
14
|
-
lib/NameFiles/BritishPrefix.rb
|
15
|
-
lib/NameFiles/BritishSuffix.rb
|
16
|
-
lib/NameFiles/EnglishFemaleFirst.rb
|
17
|
-
lib/NameFiles/EnglishLast.rb
|
18
|
-
lib/NameFiles/EnglishMaleFirst.rb
|
19
|
-
lib/NameFiles/ScottishFemaleFirst.rb
|
20
|
-
lib/NameFiles/ScottishLast.rb
|
21
|
-
lib/NameFiles/ScottishMaleFirst.rb
|
22
|
-
lib/NameFiles/SpanishFemaleFirst.rb
|
23
|
-
lib/NameFiles/SpanishLast.rb
|
24
|
-
lib/NameFiles/SpanishMaleFirst.rb
|
25
|
-
lib/NameFiles/SwedishFemaleFirst.rb
|
26
|
-
lib/NameFiles/SwedishLast.rb
|
27
|
-
lib/NameFiles/SwedishMaleFirst.rb
|
28
|
-
lib/NameFiles/ThaiFirst.rb
|
29
|
-
lib/NameFiles/ThaiRomanisedFemaleFirst.rb
|
30
|
-
lib/NameFiles/ThaiRomanisedLast.rb
|
31
|
-
lib/NameFiles/ThaiRomanisedMaleFirst.rb
|
32
|
-
lib/NameFiles/WelshFemaleFirst.rb
|
33
|
-
lib/NameFiles/WelshLast.rb
|
34
|
-
lib/NameFiles/WelshMaleFirst.rb
|
35
|
-
lib/Names.rb
|
36
|
-
lib/Person.rb
|
37
|
-
lib/Ratio.rb
|
38
|
-
lib/ext/Array.rb
|
39
|
-
lib/ext/Date.rb
|
40
|
-
lib/ext/Enumerable.rb
|
41
|
-
lib/ext/Hash.rb
|
42
|
-
lib/ext/Kernel.rb
|
43
|
-
lib/ext/Set.rb
|
44
6
|
lib/randomperson.rb
|
7
|
+
lib/randomperson/Choice.rb
|
8
|
+
lib/randomperson/Generator.rb
|
9
|
+
lib/randomperson/Name.rb
|
10
|
+
lib/randomperson/Names/AmericanFemaleFirst.rb
|
11
|
+
lib/randomperson/Names/AmericanLast.rb
|
12
|
+
lib/randomperson/Names/AmericanMaleFirst.rb
|
13
|
+
lib/randomperson/Names/AmericanSuffix.rb
|
14
|
+
lib/randomperson/Names/AnyLast.rb
|
15
|
+
lib/randomperson/Names/BasqueLast.rb
|
16
|
+
lib/randomperson/Names/BritishPrefix.rb
|
17
|
+
lib/randomperson/Names/BritishSuffix.rb
|
18
|
+
lib/randomperson/Names/EnglishFemaleFirst.rb
|
19
|
+
lib/randomperson/Names/EnglishLast.rb
|
20
|
+
lib/randomperson/Names/EnglishMaleFirst.rb
|
21
|
+
lib/randomperson/Names/ScottishFemaleFirst.rb
|
22
|
+
lib/randomperson/Names/ScottishLast.rb
|
23
|
+
lib/randomperson/Names/ScottishMaleFirst.rb
|
24
|
+
lib/randomperson/Names/SpanishFemaleFirst.rb
|
25
|
+
lib/randomperson/Names/SpanishLast.rb
|
26
|
+
lib/randomperson/Names/SpanishMaleFirst.rb
|
27
|
+
lib/randomperson/Names/SwedishFemaleFirst.rb
|
28
|
+
lib/randomperson/Names/SwedishLast.rb
|
29
|
+
lib/randomperson/Names/SwedishMaleFirst.rb
|
30
|
+
lib/randomperson/Names/ThaiFirst.rb
|
31
|
+
lib/randomperson/Names/ThaiRomanisedFemaleFirst.rb
|
32
|
+
lib/randomperson/Names/ThaiRomanisedLast.rb
|
33
|
+
lib/randomperson/Names/ThaiRomanisedMaleFirst.rb
|
34
|
+
lib/randomperson/Names/WelshFemaleFirst.rb
|
35
|
+
lib/randomperson/Names/WelshLast.rb
|
36
|
+
lib/randomperson/Names/WelshMaleFirst.rb
|
37
|
+
lib/randomperson/Person.rb
|
38
|
+
lib/randomperson/Ratio.rb
|
39
|
+
lib/randomperson/ext/Array.rb
|
40
|
+
lib/randomperson/ext/Date.rb
|
41
|
+
lib/randomperson/ext/Enumerable.rb
|
42
|
+
lib/randomperson/ext/Hash.rb
|
43
|
+
lib/randomperson/ext/Kernel.rb
|
44
|
+
lib/randomperson/ext/Set.rb
|
45
45
|
t/Generator.t
|
data/Rakefile
CHANGED
@@ -2,8 +2,10 @@ require 'rake'
|
|
2
2
|
require 'echoe'
|
3
3
|
# require 'rake/testtask'
|
4
4
|
|
5
|
+
lib_dir = File.expand_path('lib')
|
6
|
+
test_dir = File.expand_path('t')
|
5
7
|
|
6
|
-
Echoe.new('randomperson', '0.0.
|
8
|
+
Echoe.new('randomperson', '0.0.5') do |p|
|
7
9
|
p.description = "A gem for generating random persons"
|
8
10
|
p.url = "http://github.com/yb66/RandomPerson"
|
9
11
|
p.author = "Iain Barnett"
|
@@ -15,11 +17,11 @@ Echoe.new('randomperson', '0.0.3') do |p|
|
|
15
17
|
p.require_signed = true
|
16
18
|
end
|
17
19
|
|
18
|
-
|
19
|
-
#
|
20
|
+
|
20
21
|
# desc "Run basic tests"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
Rake::TestTask.new("test") { |t|
|
23
|
+
t.libs = [lib_dir, test_dir]
|
24
|
+
t.pattern = 't/*.t'
|
25
|
+
t.verbose = true
|
26
|
+
t.warning = true
|
27
|
+
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
#!/usr/bin/env ruby -wKU
|
2
|
-
|
3
|
-
require 'set'
|
4
1
|
module RandomPerson
|
5
2
|
|
6
3
|
class Choice
|
@@ -22,22 +19,16 @@ module RandomPerson
|
|
22
19
|
end
|
23
20
|
|
24
21
|
def load_names( patterns=['*.rb'] )
|
25
|
-
# puts "patterns: #{patterns}"
|
26
|
-
# available_files = [ ]
|
27
22
|
lib_dir = File.dirname(__FILE__)
|
28
|
-
|
29
23
|
patterns.each do |pat|
|
30
|
-
full_pattern = File.join( lib_dir, '
|
31
|
-
|
32
|
-
Dir.glob( full_pattern ).each do |file|
|
33
|
-
# require file
|
24
|
+
full_pattern = File.join( lib_dir, 'Names', pat )
|
25
|
+
Dir.glob( full_pattern ).each do |file|
|
34
26
|
@@available_classes << file
|
35
27
|
end
|
36
28
|
end
|
37
29
|
end
|
38
30
|
|
39
31
|
# tribe, gender, position
|
40
|
-
#English_males
|
41
32
|
def method_missing( name, *args )
|
42
33
|
return super( name, *args ) unless name.to_s =~ /^add/
|
43
34
|
words = name.to_s.split( "_" )
|
@@ -48,6 +39,7 @@ module RandomPerson
|
|
48
39
|
cs.each do |c|
|
49
40
|
require c
|
50
41
|
fn = File.basename( c, File.extname( c ) ) #remove the extension
|
42
|
+
fn = 'RandomPerson::Names::' + fn
|
51
43
|
addklass( fn, %w{ Male First } )
|
52
44
|
addklass( fn, %w{ Female First } )
|
53
45
|
addklass( fn, %w{ Last } )
|
@@ -62,7 +54,29 @@ module RandomPerson
|
|
62
54
|
instance_variable_set( "@#{ps.join.downcase}", qualified_const_get(fn).new )
|
63
55
|
end
|
64
56
|
end
|
65
|
-
|
57
|
+
|
58
|
+
#set all the nameclasses for this instance to nil
|
59
|
+
def reset_names
|
60
|
+
@suffix = nil
|
61
|
+
@prefix = nil
|
62
|
+
@last = nil
|
63
|
+
@malefirst = nil
|
64
|
+
@femalefirst = nil
|
65
|
+
end
|
66
|
+
|
67
|
+
#set all parameters and nameclasses for this instance to nil
|
68
|
+
def reset_all
|
69
|
+
reset_names
|
70
|
+
reset_parameters
|
71
|
+
end
|
72
|
+
|
73
|
+
#set the age and gender parameters for this instance to nil
|
74
|
+
def reset_parameters
|
75
|
+
@dob = nil
|
76
|
+
@age_upper = nil
|
77
|
+
@age_lower = nil
|
78
|
+
@gender_ratio = nil
|
79
|
+
end
|
66
80
|
|
67
81
|
# while n > 0
|
68
82
|
# r = rand(rat.last.last)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class AmericanFemaleFirst < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand },
|
9
|
+
}
|
10
|
+
|
11
|
+
@formats_ratiod = [ (0..99) ]
|
12
|
+
setupnames
|
13
|
+
end
|
14
|
+
|
15
|
+
def setupnames
|
16
|
+
@names = %w{ Mary Patricia Linda Barbara Elizabeth Jennifer Maria Susan Margaret Dorothy Lisa Nancy Karen Betty Helen Sandra Donna Carol Ruth Sharon Michelle Laura Sarah Kimberly Deborah Jessica Shirley Cynthia Angela Melissa Brenda Amy Anna Rebecca Virginia Kathleen Pamela Martha Debra Amanda Stephanie Carolyn Christine Marie Janet Catherine Frances Ann Joyce Diane Alice Julie Heather Teresa Doris Gloria Evelyn Jean Cheryl Mildred Katherine Joan Ashley Judith Rose Janice Kelly Nicole Judy Christina Kathy Theresa Beverly Denise Tammy Irene Jane Lori Rachel Marilyn Andrea Kathryn Louise Sara Anne Jacqueline Wanda Bonnie Julia Ruby Lois Tina Phyllis Norma Paula Diana Annie Lillian Emily Robin Peggy Crystal Gladys Rita Dawn Connie Florence Tracy Edna Tiffany Carmen Rosa Cindy Grace Wendy Victoria Edith Kim Sherry Sylvia Josephine Thelma Shannon Sheila Ethel Ellen Elaine Marjorie Carrie Charlotte Monica Esther Pauline Emma Juanita Anita Rhonda Hazel Amber Eva Debbie April Leslie Clara Lucille Jamie Joanne Eleanor Valerie Danielle Megan Alicia Suzanne Michele Gail Bertha Darlene Veronica Jill Erin Geraldine Lauren Cathy Joann Lorraine Lynn Sally Regina Erica Beatrice Dolores Bernice Audrey Yvonne Annette June Samantha Marion Dana Stacy Ana Renee Ida Vivian Roberta Holly Brittany Melanie Loretta Yolanda Jeanette Laurie Katie Kristen Vanessa Alma Sue Elsie Beth Jeanne Vicki Carla Tara Rosemary Eileen Terri Gertrude Lucy Tonya Ella Stacey Wilma Gina Kristin Jessie Natalie Agnes Vera Willie Charlene Bessie Delores Melinda Pearl Arlene Maureen Colleen Allison Tamara Joy Georgia Constance Lillie Claudia Jackie Marcia Tanya Nellie Minnie Marlene Heidi Glenda Lydia Viola Courtney Marian Stella Caroline Dora Jo Vickie Mattie Terry Maxine Irma Mabel Marsha Myrtle Lena Christy Deanna Patsy Hilda Gwendolyn Jennie Nora Margie Nina Cassandra Leah Penny Kay Priscilla Naomi Carole Brandy Olga Billie Dianne Tracey Leona Jenny Felicia Sonia Miriam Velma Becky Bobbie Violet Kristina Toni Misty Mae Shelly Daisy Ramona Sherri Erika Katrina Claire Lindsey Lindsay Geneva Guadalupe Belinda Margarita Sheryl Cora Faye Ada Natasha Sabrina Isabel Marguerite Hattie Harriet Molly Cecilia Kristi Brandi Blanche Sandy Rosie Joanna Iris Eunice Angie Inez Lynda Madeline Amelia Alberta Genevieve Monique Jodi Janie Maggie Kayla Sonya Jan Lee Kristine Candace Fannie Maryann Opal Alison Yvette Melody Luz Susie Olivia Flora Shelley Kristy Mamie Lula Lola Verna Beulah Antoinette Candice Juana Jeannette Pam Kelli Hannah Whitney Bridget Karla Celia Latoya Patty Shelia Gayle Della Vicky Lynne Sheri Marianne Kara Jacquelyn Erma Blanca Myra Leticia Pat Krista Roxanne Angelica Johnnie Robyn Francis Adrienne Rosalie Alexandra Brooke Bethany Sadie Bernadette Traci Jody Kendra Jasmine Nichole Rachael Chelsea Mable Ernestine Muriel Marcella Elena Krystal Angelina Nadine Kari Estelle Dianna Paulette Lora Mona Doreen Rosemarie Angel Desiree Antonia Hope Ginger Janis Betsy Christie Freda Mercedes Meredith Lynette Teri Cristina Eula Leigh Meghan Sophia Eloise Rochelle Gretchen Cecelia Raquel Henrietta Alyssa Jana Kelley Gwen Kerry Jenna Tricia Laverne Olive Alexis Tasha Silvia Elvira Casey Delia Sophie Kate Patti Lorena Kellie Sonja Lila Lana Darla May Mindy Essie Mandy Lorene Elsa Josefina Jeannie Miranda Dixie Lucia Marta Faith Lela Johanna Shari Camille Tami Shawna Elisa Ebony Melba Ora Nettie Tabitha Ollie Jaime Winifred Kristie Marina Alisha Aimee Rena Myrna Marla Tammie Latasha Bonita Patrice Ronda Sherrie Addie Francine Deloris Stacie Adriana Cheri Shelby Abigail Celeste Jewel Cara Adele Rebekah Lucinda Dorthy Chris Effie Trina Reba Shawn Sallie Aurora Lenora Etta Lottie Kerri Trisha Nikki Estella Francisca Josie Tracie Marissa Karin Brittney Janelle Lourdes Laurel Helene Fern Elva Corinne Kelsey Ina Bettie Elisabeth Aida Caitlin Ingrid Iva Eugenia Christa Goldie Cassie Maude Jenifer Therese Frankie Dena Lorna Janette Latonya Candy Morgan Consuelo Tamika Rosetta Debora Cherie Polly Dina Jewell Fay Jillian Dorothea Nell Trudy Esperanza Patrica Kimberley Shanna Helena Carolina Cleo Stefanie Rosario Ola Janine Mollie Lupe Alisa Lou Maribel Susanne Bette Susana Elise Cecile Isabelle Lesley Jocelyn Paige Joni Rachelle Leola Daphne Alta Ester Petra Graciela Imogene Jolene Keisha Lacey Glenna Gabriela Keri Ursula Lizzie Kirsten Shana Adeline Mayra Jayne Jaclyn Gracie Sondra Carmela Marisa Rosalind Charity Tonia Beatriz Marisol Clarice Jeanine Sheena Angeline Frieda Lily Robbie Shauna Millie Claudette Cathleen Angelia Gabrielle Autumn Katharine Summer Jodie Staci Lea Christi Jimmie Justine Elma Luella Margret Dominique Socorro Rene Martina Margo Mavis Callie Bobbi Maritza Lucile Leanne Jeannine Deana Aileen Lorie Ladonna Willa Manuela Gale Selma Dolly Sybil Abby Lara Dale Ivy Dee Winnie Marcy Luisa Jeri Magdalena Ofelia Meagan Audra Matilda Leila Cornelia Bianca Simone Bettye Randi Virgie Latisha Barbra Georgina Eliza Leann Bridgette Rhoda Haley Adela Nola Bernadine Flossie Ila Greta Ruthie Nelda Minerva Lilly Terrie Letha Hilary Estela Valarie Brianna Rosalyn Earline Catalina Ava Mia Clarissa Lidia Corrine Alexandria Concepcion Tia Sharron Rae Dona Ericka Jami Elnora Chandra Lenore Neva Marylou Melisa Tabatha Serena Avis Allie Sofia Jeanie Odessa Nannie Harriett Loraine Penelope Milagros Emilia Benita Allyson Ashlee Tania Tommie Esmeralda Karina Eve Pearlie Zelma Malinda Noreen Tameka Saundra Hillary Amie Althea Rosalinda Jordan Lilia Alana Gay Clare Alejandra Elinor Michael Lorrie Jerri Darcy Earnestine Carmella Taylor Noemi Marcie Liza Annabelle Louisa Earlene Mallory Carlene Nita Selena Tanisha Katy Julianne John Lakisha Edwina Maricela Margery Kenya Dollie Roxie Roslyn Kathrine Nanette Charmaine Lavonne Ilene Kris Tammi Suzette Corine Kaye Jerry Merle Chrystal Lina Deanne Lilian Juliana Aline Luann Kasey Maryanne Evangeline Colette Melva Lawanda Yesenia Nadia Madge Kathie Eddie Ophelia Valeria Nona Mitzi Mari Georgette Claudine Fran Alissa Roseann Lakeisha Susanna Reva Deidre Chasity Sheree Carly James Elvia Alyce Deirdre Gena Briana Araceli Katelyn Rosanne Wendi Tessa Berta Marva Imelda Marietta Marci Leonor Arline Sasha Madelyn Janna Juliette Deena Aurelia Josefa Augusta Liliana Young Christian Lessie Amalia Savannah Anastasia Vilma Natalia Rosella Lynnette Corina Alfreda Leanna Carey Amparo Coleen Tamra Aisha Wilda Karyn Cherry Queen Maura Mai Evangelina Rosanna Hallie Erna Enid Mariana Lacy Juliet Jacklyn Freida Madeleine Mara Hester Cathryn Lelia Casandra Bridgett Angelita Jannie Dionne Annmarie Katina Beryl Phoebe Millicent Katheryn Diann Carissa Maryellen Liz Lauri Helga Gilda Adrian Rhea Marquita Hollie Tisha Tamera Angelique Francesca Britney Kaitlin Lolita Florine Rowena Reyna Twila Fanny Janell Ines Concetta Bertie Alba Brigitte Alyson Vonda Pansy Elba Noelle Letitia Kitty Deann Brandie Louella Leta Felecia Sharlene Lesa Beverley Robert Isabella Herminia Terra Celina }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class AmericanLast < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand },
|
9
|
+
:double_barrelled => ->(n) { n.rand + ' ' + n.rand },
|
10
|
+
:double_barrelled_hyphenated=> ->(n) { n.rand + '-' + n.rand },
|
11
|
+
}
|
12
|
+
|
13
|
+
@formats_ratiod = [ (0..95), (96..97), (98..99) ]
|
14
|
+
setupnames
|
15
|
+
end
|
16
|
+
|
17
|
+
def setupnames
|
18
|
+
@names = %w(Smith Johnson Williams Jones Brown Davis Miller Wilson Moore Taylor Anderson Thomas Jackson White Harris Martin Thompson Garcia Martinez Robinson Clark Rodriguez Lewis Lee Walker Hall Allen Young Hernandez King Wright Lopez Hill Scott Green Adams Baker Gonzalez Nelson Carter Mitchell Perez Roberts Turner Phillips Campbell Parker Evans Edwards Collins Stewart Sanchez Morris Rogers Reed Cook Morgan Bell Murphy Bailey Rivera Cooper Richardson Cox Howard Ward Torres Peterson Gray Ramirez James Watson Brooks Kelly Sanders Price Bennett Wood Barnes Ross Henderson Coleman Jenkins Perry Powell Long Patterson Hughes Flores Washington Butler Simmons Foster Gonzales Bryant Alexander Russell Griffin Diaz Hayes Myers Ford Hamilton Graham Sullivan Wallace Woods Cole West Jordan Owens Reynolds Fisher Ellis Harrison Gibson McDonald Cruz Marshall Ortiz Gomez Murray Freeman Wells Webb Simpson Stevens Tucker Porter Hunter Hicks Crawford Henry Boyd Mason Morales Kennedy Warren Dixon Ramos Reyes Burns Gordon Shaw Holmes Rice Robertson Hunt Black Daniels Palmer Mills Nichols Grant Knight Ferguson Rose Stone Hawkins Dunn Perkins Hudson Spencer Gardner Stephens Payne Pierce Berry Matthews Arnold Wagner Willis Ray Watkins Olson Carroll Duncan Snyder Hart Cunningham Bradley Lane Andrews Ruiz Harper Fox Riley Armstrong Carpenter Weaver Greene Lawrence Elliott Chavez Sims Austin Peters Kelley Franklin Lawson Fields Gutierrez Ryan Schmidt Carr Vasquez Castillo Wheeler Chapman Oliver Montgomery Richards Williamson Johnston Banks Meyer Bishop McCoy Howell Alvarez Morrison Hansen Fernandez Garza Harvey Little Burton Stanley Nguyen George Jacobs Reid Kim Fuller Lynch Dean Gilbert Garrett Romero Welch Larson Frazier Burke Hanson Day Mendoza Moreno Bowman Medina Fowler Brewer Hoffman Carlson Silva Pearson Holland Douglas Fleming Jensen Vargas Byrd Davidson Hopkins May Terry Herrera Wade Soto Walters Curtis Neal Caldwell Lowe Jennings Barnett Graves Jimenez Horton Shelton Barrett Obrien Castro Sutton Gregory McKinney Lucas Miles Craig Rodriquez Chambers Holt Lambert Fletcher Watts Bates Hale Rhodes Pena Beck Newman Haynes McDaniel Mendez Bush Vaughn Parks Dawson Santiago Norris Hardy Love Steele Curry Powers Schultz Barker Guzman Page Munoz Ball Keller Chandler Weber Leonard Walsh Lyons Ramsey Wolfe Schneider Mullins Benson Sharp Bowen Daniel Barber Cummings Hines Baldwin Griffith Valdez Hubbard Salazar Reeves Warner Stevenson Burgess Santos Tate Cross Garner Mann Mack Moss Thornton Dennis McGee Farmer Delgado Aguilar Vega Glover Manning Cohen Harmon Rodgers Robbins Newton Todd Blair Higgins Ingram Reese Cannon Strickland Townsend Potter Goodwin Walton Rowe Hampton Ortega Patton Swanson Joseph Francis Goodman Maldonado Yates Becker Erickson Hodges Rios Conner Adkins Webster Norman Malone Hammond Flowers Cobb Moody Quinn Blake Maxwell Pope Floyd Osborne Paul McCarthy Guerrero Lindsey Estrada Sandoval Gibbs Tyler Gross Fitzgerald Stokes Doyle Sherman Saunders Wise Colon Gill Alvarado Greer Padilla Simon Waters Nunez Ballard Schwartz McBride Houston Christensen Klein Pratt Briggs Parsons McLaughlin Zimmerman French Buchanan Moran Copeland Roy Pittman Brady McCormick Holloway Brock Poole Frank Logan Owen Bass Marsh Drake Wong Jefferson Park Morton Abbott Sparks Patrick Norton Huff Clayton Massey Lloyd Figueroa Carson Bowers Roberson Barton Tran Lamb Harrington Casey Boone Cortez Clarke Mathis Singleton Wilkins Cain Bryan Underwood Hogan McKenzie Collier Luna Phelps McGuire Allison Bridges Wilkerson Nash Summers Atkins Wilcox Pitts Conley Marquez Burnett Richard Cochran Chase Davenport Hood Gates Clay Ayala Sawyer Roman Vazquez Dickerson Hodge Acosta Flynn Espinoza Nicholson Monroe Wolf Morrow Kirk Randall Anthony Whitaker Oconnor Skinner Ware Molina Kirby Huffman Bradford Charles Gilmore Dominguez Oneal Bruce Lang Combs Kramer Heath Hancock Gallagher Gaines Shaffer Short Wiggins Mathews McClain Fischer Wall Small Melton Hensley Bond Dyer Cameron Grimes Contreras Christian Wyatt Baxter Snow Mosley Shepherd Larsen Hoover Beasley Glenn Petersen Whitehead Meyers Keith Garrison Vincent Shields Horn Savage Olsen Schroeder Hartman Woodard Mueller Kemp Deleon Booth Patel Calhoun Wiley Eaton Cline Navarro Harrell Lester Humphrey Parrish Duran Hutchinson Hess Dorsey Bullock Robles Beard Dalton Avila Vance Rich Blackwell York Johns Blankenship Trevino Salinas Campos Pruitt Moses Callahan Golden Montoya Hardin Guerra McDowell Carey Stafford Gallegos Henson Wilkinson Booker Merritt Miranda Atkinson Orr Decker Hobbs Preston Tanner Knox Pacheco Stephenson Glass Rojas Serrano Marks Hickman English Sweeney Strong Prince McClure Conway Walter Roth Maynard Farrell Lowery Hurst Nixon Weiss Trujillo Ellison Sloan Juarez Winters McLean Randolph Leon Boyer Villarreal McCall Gentry Carrillo Kent Ayers Lara Shannon Sexton Pace Hull Leblanc Browning Velasquez Leach Chang House Sellers Herring Noble Foley Bartlett Mercado Landry Durham Walls Barr McKee Bauer Rivers Everett Bradshaw Pugh Velez Rush Estes Dodson Morse Sheppard Weeks Camacho Bean Barron Livingston Middleton Spears Branch Blevins Chen Kerr McConnell Hatfield Harding Ashley Solis Herman Frost Giles Blackburn William Pennington Woodward Finley McIntosh Koch Best Solomon McCullough Dudley Nolan Blanchard Rivas Brennan Mejia Kane Benton Joyce Buckley Haley Valentine Maddox Russo McKnight Buck Moon McMillan Crosby Berg Dotson Mays Roach Church Chan Richmond Meadows Faulkner Oneill Knapp Kline Barry Ochoa Jacobson Gay Avery Hendricks Horne Shepard Hebert Cherry Cardenas McIntyre Whitney Waller Holman Donaldson Cantu Terrell Morin Gillespie Fuentes Tillman Sanford Bentley Peck Key Salas Rollins Gamble Dickson Battle Santana Cabrera Cervantes Howe Hinton Hurley Spence Zamora Yang McNeil Suarez Case Petty Gould McFarland Sampson Carver Bray Rosario Macdonald Stout Hester Melendez Dillon Farley Hopper Galloway Potts Bernard Joyner Stein Aguirre Osborn Mercer Bender Franco Rowland Sykes Benjamin Travis Pickett Crane Sears Mayo Dunlap Hayden Wilder McKay Coffey McCarty Ewing Cooley Vaughan Bonner Cotton Holder Stark Ferrell Cantrell Fulton Lynn Lott Calderon Rosa Pollard Hooper Burch Mullen Fry Riddle Levy David Duke Odonnell Guy Michael Britt Frederick Daugherty Berger Dillard Alston Jarvis Frye Riggs Chaney Odom Duffy Fitzpatrick Valenzuela Merrill Mayer Alford McPherson Acevedo Donovan Barrera Albert Cote Reilly Compton Raymond Mooney McGowan Craft Cleveland Clemons Wynn Nielsen Baird Stanton Snider Rosales Bright Witt Stuart Hays Holden Rutledge Kinney Clements Castaneda Slater Hahn Emerson Conrad Burks Delaney Pate Lancaster Sweet Justice Tyson Sharpe Whitfield Talley Macias Irwin Burris Ratliff McCray Madden Kaufman Beach Goff Cash Bolton McFadden Levine Good Byers Kirkland Kidd Workman Carney Dale Mcleod Holcomb England Finch Head Burt Hendrix Sosa Haney Franks Sargent Nieves Downs Rasmussen Bird Hewitt Lindsay Le Foreman Valencia Oneil Delacruz Vinson Dejesus Hyde Forbes Gilliam Guthrie Wooten Huber Barlow Boyle McMahon Buckner Rocha Puckett Langley Knowles Cooke Velazquez Whitley Noel Vang )
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class AmericanMaleFirst < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@formats = {
|
8
|
+
:single => ->(n) { n.rand },
|
9
|
+
}
|
10
|
+
|
11
|
+
@formats_ratiod = [ (0..99) ]
|
12
|
+
setupnames
|
13
|
+
end
|
14
|
+
|
15
|
+
def setupnames
|
16
|
+
@names = %w{ James John Robert Michael William David Richard Charles Joseph Thomas Christopher Daniel Paul Mark Donald George Kenneth Steven Edward Brian Ronald Anthony Kevin Jason Matthew Gary Timothy Jose Larry Jeffrey Frank Scott Eric Stephen Andrew Raymond Gregory Joshua Jerry Dennis Walter Patrick Peter Harold Douglas Henry Carl Arthur Ryan Roger Joe Juan Jack Albert Jonathan Justin Terry Gerald Keith Samuel Willie Ralph Lawrence Nicholas Roy Benjamin Bruce Brandon Adam Harry Fred Wayne Billy Steve Louis Jeremy Aaron Randy Howard Eugene Carlos Russell Bobby Victor Martin Ernest Phillip Todd Jesse Craig Alan Shawn Clarence Sean Philip Chris Johnny Earl Jimmy Antonio Danny Bryan Tony Luis Mike Stanley Leonard Nathan Dale Manuel Rodney Curtis Norman Allen Marvin Vincent Glenn Jeffery Travis Jeff Chad Jacob Lee Melvin Alfred Kyle Francis Bradley Jesus Herbert Frederick Ray Joel Edwin Don Eddie Ricky Troy Randall Barry Alexander Bernard Mario Leroy Francisco Marcus Micheal Theodore Clifford Miguel Oscar Jay Jim Tom Calvin Alex Jon Ronnie Bill Lloyd Tommy Leon Derek Warren Darrell Jerome Floyd Leo Alvin Tim Wesley Gordon Dean Greg Jorge Dustin Pedro Derrick Dan Lewis Zachary Corey Herman Maurice Vernon Roberto Clyde Glen Hector Shane Ricardo Sam Rick Lester Brent Ramon Charlie Tyler Gilbert Gene Marc Reginald Ruben Brett Angel Nathaniel Rafael Leslie Edgar Milton Raul Ben Chester Cecil Duane Franklin Andre Elmer Brad Gabriel Ron Mitchell Roland Arnold Harvey Jared Adrian Karl Cory Claude Erik Darryl Jamie Neil Jessie Christian Javier Fernando Clinton Ted Mathew Tyrone Darren Lonnie Lance Cody Julio Kelly Kurt Allan Nelson Guy Clayton Hugh Max Dwayne Dwight Armando Felix Jimmie Everett Jordan Ian Wallace Ken Bob Jaime Casey Alfredo Alberto Dave Ivan Johnnie Sidney Byron Julian Isaac Morris Clifton Willard Daryl Ross Virgil Andy Marshall Salvador Perry Kirk Sergio Marion Tracy Seth Kent Terrance Rene Eduardo Terrence Enrique Freddie Wade }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RandomPerson
|
2
|
+
module Names
|
3
|
+
|
4
|
+
class AmericanSuffix < Name
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@names = [ 'Jr.', ''] + %w( I II III IV V Sr. )
|
8
|
+
@formats_ratiod = [ 0, 1..93, 94, 95, 96, 97, 98, 99]
|
9
|
+
end
|
10
|
+
|
11
|
+
def execute( person)
|
12
|
+
|
13
|
+
r = rand(99)
|
14
|
+
if person.age > 17
|
15
|
+
r += 1 #Jr can't happen
|
16
|
+
end
|
17
|
+
|
18
|
+
i = @formats_ratiod.index_in_range( r )
|
19
|
+
return @names[i]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|