Link | lp_demo_fullname |
Author | Bil Corry |
Category | Utility |
Version | 8.x |
License | Public Domain |
Posted | 17 May 2006 |
Updated | 14 Jan 2008 |
More by this author... |
Returns a random American name (first middle last).
lp_demo_fullname; '
'; lp_demo_fullname: -female; '
'; lp_demo_fullname: -male;
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
[ define_tag:'lp_demo_fullname', -description='Returns a random name (first middle last).', -priority='replace', -optional='gender', // 'female' || 'male' -optional='female', // female name -optional='male'; // male name // uses top 100 male and top 100 female common first names from: // http://www.babycenter.com/general/babynaming/pregnancy/1459677.html // and uses top 500 common last names from: // http://www.census.gov/genealogy/names/dist.all.last // this is for United States, use your own list if in another country local:'female_names' = (:'Emma','Emily','Madison','Kaitlyn','Sophia','Isabella','Olivia','Hannah','Makayla','Ava','Abigail','Sarah','Hailey','Kaylee','Madeline','Ella','Grace','Mia','Riley','Samantha','Sydney','Lauren','Mackenzie','Chloe','Alyssa','Lily','Alexis','Natalie','Taylor','Anna','Brianna','Zoe','Kylie','Ashley','Elizabeth','Megan','Allison','Kayla','Katherine','Kyra','Isabelle','Morgan','Savannah','Jasmine','Arianna','Avery','Julia','Rachel','Maya','Jordan','Brooke','Paige','Victoria','Peyton','Katie','Abby','Gabriella','Alexandra','Leah','Jessica','Rebecca','Brooklyn','Gabrielle','Audrey','Amelia','Jenna','Reagan','Sophie','Trinity','Sierra','Cadence','Lillian','Ashlyn','Bailey','Gracie','Faith','Kendall','Kate','Molly','Claire','Kennedy','Caroline','Addison','Marissa','Alana','Destiny','Jada','Amanda','Alexa','Erin','Layla','Gianna','Ellie','Camryn','Nicole','Angelina','Charlotte','Aaliyah','Mckenna','Lucy'); local:'male_names' = (:'Aidan','Jacob','Ethan','Nicholas','Matthew','Ryan','Tyler','Jack','Joshua','Andrew','Dylan','Michael','Connor','Caden','Jayden','Noah','Zachary','Alexander','Logan','Caleb','Nathan','Jackson','William','Evan','Joseph','Benjamin','James','Christopher','Cameron','Daniel','Christian','Luke','Gavin','Gabriel','Mason','Anthony','Brayden','David','Austin','Lucas','John','Elijah','Owen','Jonathan','Brandon','Alex','Samuel','Sean','Thomas','Hunter','Landon','Jordan','Justin','Carter','Cole','Jake','Ian','Liam','Hayden','Dominic','Isaac','Jason','Kyle','Adam','Isaiah','Aaron','Nathaniel','Colin','Devin','Riley','Robert','Max','Eric','Tristan','Chase','Wyatt','Carson','Julian','Cooper','Blake','Charlie','Brady','Bryce','Brendan','Brian','Sebastian','Xavier','Seth','Parker','Cody','Sam','Patrick','Ashton','Will','Kevin','Garrett','Ben','Trevor','Henry','Drew'); local:'last_names' = (:'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','O\'Brien','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'); if: !(local_defined:'female') && !(local_defined:'male') && !(local_defined:'gender'); if: (math_random: -lower=0, -upper=1); local:'male' = true; else; local:'female' = true; /if; /if; if: (local_defined:'female') || ((local_defined:'gender') && (string: #gender)->(beginswith:'f')); local:'choices' = @#female_names; else; // assume #gender is male local:'choices' = @#male_names; /if; local:'num_choices' = #choices->size; local:'first' = #choices->(get: (math_random: -lower=1, -upper=#num_choices)); local:'middle' = #choices->(get: (math_random: -lower=1, -upper=#num_choices)); // we allow the same first and middle name local:'last' = #last_names->(get: (math_random: -lower=1, -upper=#last_names->size)); return: #first ' ' #middle ' ' #last; /define_tag; ]
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft