PHP Classes

File: src/dictionary-names.php

Recommend this page to a friend!
  Classes of Peter Kahl   Extract Name from Email Address   src/dictionary-names.php   Download  
File: src/dictionary-names.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Extract Name from Email Address
Extract person name from e-mail address header
Author: By
Last change: Added names 'ota' and 'otto'
Date: 7 years ago
Size: 17,160 bytes
 

Contents

Class file image Download
<?php /** * NAME FROM STRING: DICTIONARY OF NAMES * Extracts person's real name from an email (or any) string. * * @version 2017-05-11 03:05:00 GMT * @author Peter Kahl <peter.kahl@colossalmind.com> * @since 2012 * @license Apache License, Version 2.0 * * Copyright 2012-2017 Peter Kahl <peter.kahl@colossalmind.com> * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * <http://www.apache.org/licenses/LICENSE-2.0> * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ # https://en.wikipedia.org/wiki/List_of_most_popular_given_names # http://www.dochara.com/the-irish/surnames/irish-surnames-mac/ $dict = array( 'abbott', 'abigail', 'acevedo', 'acosta', 'adam', 'adams', 'adkins', 'aguilar', 'aguirre', 'albert', 'alec', 'alex', 'alexander', 'alexandra', 'alexei', 'alexey', 'alexis', 'alford', 'alice', 'alicia', 'allen', 'allison', 'alserda', 'alston', 'alvarado', 'alvarez', 'alyssa', 'amelia', 'anderson', 'andrea', 'andreas', 'andrew', 'andrews', 'angelis', 'anna', 'anthony', 'ariel', 'armstrong', 'arnold', 'art', 'arthur', 'ashley', 'atkins', 'atkinson', 'austin', 'ava', 'avery', 'avila', 'ayala', 'ayers', 'bailey', 'baird', 'baker', 'baldwin', 'ball', 'ballard', 'banks', 'barack', 'barbara', 'barber', 'bard', 'barker', 'barlow', 'barnes', 'barnett', 'barr', 'barrera', 'barrett', 'barron', 'barry', 'bartlett', 'barton', 'bass', 'bates', 'battle', 'bauer', 'baxter', 'beach', 'bean', 'beard', 'beasley', 'beck', 'becker', 'bell', 'ben', 'bender', 'benjamin', 'bennett', 'benson', 'bentley', 'benton', 'berg', 'berger', 'bernard', 'bernhart', 'bernie', 'berry', 'best', 'beth', 'betsy', 'betty', 'bill', 'billy', 'bird', 'bishop', 'black', 'blackburn', 'blackwell', 'blair', 'blake', 'blanchard', 'blankenship', 'blevins', 'bob', 'bobby', 'bohr', 'bolton', 'bond', 'bonner', 'booker', 'boone', 'booth', 'bowen', 'bowers', 'bowman', 'boyd', 'boyer', 'boyle', 'brad', 'bradford', 'bradley', 'bradshaw', 'brady', 'branch', 'braun', 'bray', 'brennan', 'brewer', 'brian', 'bridges', 'briggs', 'bright', 'brigitte', 'britney', 'britt', 'brittany', 'brock', 'brooks', 'brown', 'browning', 'bruce', 'bryan', 'bryant', 'buchanan', 'buck', 'buckley', 'buckner', 'bullock', 'burch', 'burgess', 'burke', 'burks', 'burnett', 'burns', 'burris', 'burt', 'burton', 'bush', 'butler', 'butterworth', 'byers', 'byrd', 'cabrera', 'cain', 'calderon', 'calderone', 'caldwell', 'calhoun', 'callahan', 'camacho', 'cameron', 'campbell', 'campos', 'cannon', 'cantrell', 'cantu', 'cardenas', 'carey', 'carl', 'carla', 'carlos', 'carlson', 'carly', 'carmen', 'carney', 'carol', 'carolina', 'caroline', 'carpenter', 'carr', 'carrillo', 'carroll', 'carson', 'carter', 'carver', 'case', 'casey', 'cash', 'cassandra', 'castaneda', 'castillo', 'castro', 'catherine', 'cathy', 'cecile', 'cecilia', 'cervantes', 'chambers', 'chan', 'chandler', 'chandra', 'chaney', 'chang', 'chapman', 'charles', 'charlie', 'charlotte', 'chase', 'chavez', 'chen', 'cherry', 'cheryl', 'cheung', 'child', 'childs', 'chloe', 'chris', 'chrissy', 'christensen', 'christian', 'christina', 'christine', 'christopher', 'christy', 'church', 'clark', 'clarke', 'clarkson', 'clay', 'clayton', 'clements', 'clemons', 'cleveland', 'cline', 'cobb', 'cochran', 'cockburn', 'coffey', 'cohen', 'cole', 'coleman', 'collier', 'collin', 'collins', 'colon', 'combs', 'compton', 'conley', 'conner', 'conrad', 'contreras', 'conway', 'cook', 'cooke', 'cooley', 'cooper', 'copeland', 'cora', 'corazon', 'cortez', 'cory', 'cosimo', 'cosmo', 'cote', 'cotton', 'cox', 'craft', 'craig', 'crane', 'crawford', 'crosby', 'cross', 'cruz', 'crystal', 'cummings', 'cunningham', 'curry', 'curtis', 'dale', 'dalibor', 'dalton', 'dan', 'daniel', 'daniela', 'daniele', 'danielle', 'daniels', 'darcy', 'daugherty', 'dave', 'davenport', 'david', 'davidson', 'davies', 'davis', 'dawson', 'day', 'dean', 'debbie', 'deborah', 'decker', 'dejesus', 'delacruz', 'delaney', 'deleon', 'delgado', 'dennis', 'derek', 'diana', 'dianne', 'diaz', 'dickerson', 'dickson', 'dillard', 'dillon', 'dixon', 'dodson', 'doe', 'dominguez', 'don', 'donald', 'donaldson', 'donna', 'donovan', 'dora', 'dorothy', 'dorsey', 'dotson', 'doug', 'douglas', 'downs', 'doyle', 'drake', 'dudley', 'duffy', 'duke', 'duncan', 'dunlap', 'dunn', 'duran', 'durham', 'dyer', 'eaton', 'eberhart', 'ecclestone', 'echols', 'ed', 'eddie', 'eduard', 'edward', 'edwards', 'elias', 'eliza', 'elizabeth', 'elliott', 'ellis', 'ellison', 'emerson', 'emily', 'emma', 'england', 'english', 'eric', 'erica', 'erickson', 'ericsson', 'erik', 'erika', 'espinoza', 'estes', 'estrada', 'ethan', 'eugene', 'eugenia', 'evans', 'everett', 'ewing', 'ezekiel', 'farley', 'farmer', 'farrell', 'faulkner', 'felix', 'ferguson', 'fernandez', 'ferrell', 'fields', 'figueroa', 'finch', 'finley', 'fiona', 'fischer', 'fitzgerald', 'fitzpatrick', 'fleming', 'fletcher', 'flores', 'flowers', 'floyd', 'flynn', 'foley', 'forbes', 'ford', 'foreman', 'foster', 'fowler', 'fox', 'francesca', 'francis', 'francisco', 'franco', 'frank', 'franklin', 'franks', 'frazier', 'fred', 'frederic', 'frederick', 'freeman', 'french', 'frost', 'fry', 'frye', 'fuentes', 'fuller', 'fulton', 'gaines', 'gallagher', 'gallegos', 'galloway', 'gamble', 'garcia', 'gardner', 'garner', 'garrett', 'garrison', 'garry', 'garza', 'gates', 'gay', 'geena', 'gene', 'gentry', 'george', 'gerald', 'gibbs', 'gibson', 'gilbert', 'giles', 'gill', 'gillespie', 'gilliam', 'gilmore', 'gina', 'giorgio', 'glass', 'glenn', 'glorimar', 'glover', 'goff', 'golden', 'gomez', 'gonzales', 'gonzalez', 'good', 'goodman', 'goodwin', 'gordon', 'gould', 'graham', 'grant', 'graves', 'gray', 'green', 'greene', 'greer', 'greg', 'gregory', 'griffin', 'griffith', 'grigori', 'grimes', 'gross', 'guerra', 'guerrero', 'guthrie', 'gutierrez', 'guy', 'guzman', 'hahn', 'hale', 'haley', 'hall', 'hamarsheh', 'hamilton', 'hammond', 'hampton', 'hancock', 'haney', 'hans', 'hansen', 'hanson', 'hardin', 'harding', 'hardy', 'harmon', 'harper', 'harrell', 'harrington', 'harris', 'harrison', 'hart', 'hartman', 'harvey', 'hatfield', 'hawkins', 'hayden', 'hayes', 'haynes', 'hays', 'head', 'heath', 'hebert', 'helen', 'helena', 'henderson', 'hendricks', 'hendrix', 'henry', 'hensley', 'henson', 'herman', 'hernandez', 'herrera', 'herring', 'hess', 'hester', 'hewitt', 'hickman', 'hicks', 'higgins', 'hill', 'hines', 'hinton', 'hobbs', 'hodge', 'hodges', 'hoffman', 'hogan', 'holcomb', 'holden', 'holder', 'holland', 'holloway', 'holman', 'holmes', 'holt', 'hood', 'hooper', 'hoover', 'hopkins', 'hopper', 'horn', 'horne', 'horton', 'house', 'houston', 'howard', 'howe', 'howell', 'hubbard', 'huber', 'hudson', 'huff', 'huffman', 'hughes', 'hull', 'humphrey', 'hunt', 'hunter', 'hurley', 'hurst', 'hutchinson', 'hyde', 'ingram', 'irwin', 'isabella', 'ivan', 'ivana', 'jack', 'jackie', 'jackson', 'jacob', 'jacobs', 'jacobson', 'jacqueline', 'jaime', 'jakob', 'jakub', 'james', 'jan', 'jane', 'janet', 'jarred', 'jarrod', 'jarvis', 'jason', 'jay', 'jayden', 'jeff', 'jefferson', 'jeffrey', 'jen', 'jenings', 'jenkins', 'jennifer', 'jennings', 'jenny', 'jensen', 'jessica', 'jessie', 'jim', 'jimenez', 'jimmy', 'jody', 'joe', 'johann', 'johanna', 'johannes', 'john', 'johnny', 'johns', 'johnson', 'johnston', 'johny', 'jonas', 'jonathan', 'jones', 'jordan', 'joseph', 'josh', 'joshua', 'joyce', 'joyner', 'juarez', 'judy', 'julia', 'julie', 'justice', 'kahl', 'kane', 'karen', 'kate', 'kath', 'kaufman', 'keith', 'keller', 'kelley', 'kelly', 'kemp', 'ken', 'kennard', 'kennedy', 'kenneth', 'kent', 'kerr', 'kevin', 'key', 'kidd', 'kim', 'kimberly', 'king', 'kingsley', 'kinney', 'kirby', 'kirk', 'kirkland', 'klein', 'kline', 'knapp', 'knight', 'knowles', 'knox', 'koch', 'kramer', 'lamb', 'lambert', 'lancaster', 'landry', 'lane', 'lang', 'langley', 'lara', 'larsen', 'larson', 'laura', 'laurel', 'lauren', 'lawrence', 'lawson', 'leach', 'leblanc', 'lee', 'leo', 'leon', 'leonard', 'leonardo', 'lester', 'levine', 'levy', 'lewis', 'linda', 'lindsey', 'lisa', 'little', 'livingston', 'liz', 'liza', 'lizzie', 'lloyd', 'logan', 'long', 'lopez', 'lorraine', 'lorrie', 'lott', 'louis', 'louise', 'lourdes', 'love', 'lowe', 'lowery', 'lucas', 'luis', 'lukas', 'luna', 'lynch', 'lynn', 'lyons', 'macauley', 'macauliffe', 'macbride', 'maccabe', 'maccann', 'maccarthy', 'maccormack', 'maccullagh', 'macdermot', 'macdonald', 'macelroy', 'macias', 'mack', 'macpherson', 'madden', 'maddox', 'madera', 'madison', 'maldonado', 'malone', 'mann', 'manning', 'marc', 'marcus', 'mares', 'margaret', 'maria', 'mariana', 'marina', 'marie', 'mario', 'mark', 'marks', 'marquez', 'marsh', 'marshall', 'martha', 'martin', 'martinez', 'marx', 'mary', 'mason', 'massey', 'massimo', 'mathews', 'mathis', 'matt', 'matteo', 'matthew', 'matthews', 'max', 'maxim', 'maximilian', 'maximiliano', 'maximus', 'maxwell', 'may', 'mayer', 'maynard', 'mayo', 'mays', 'mcbride', 'mccall', 'mccarthy', 'mccarty', 'mcclain', 'mcclure', 'mcconnell', 'mccormick', 'mccoy', 'mccray', 'mccullough', 'mcdaniel', 'mcdonald', 'mcdowell', 'mcfadden', 'mcfarland', 'mcgee', 'mcgowan', 'mcguire', 'mcintosh', 'mcintyre', 'mckay', 'mckee', 'mckenzie', 'mckinney', 'mcknight', 'mclaughlin', 'mclean', 'mcleod', 'mcmahon', 'mcmillan', 'mcneil', 'mcpherson', 'meadows', 'medina', 'mejia', 'mel', 'melendez', 'melissa', 'melton', 'melville', 'melvin', 'mendez', 'mendoza', 'mercado', 'mercer', 'merrill', 'merritt', 'meyer', 'meyers', 'mia', 'michael', 'michaels', 'michelle', 'mick', 'middleton', 'miguel', 'miles', 'miller', 'mills', 'miranda', 'miro', 'miroslav', 'mitchell', 'molina', 'monica', 'monique', 'monroe', 'montgomery', 'montoya', 'moody', 'moon', 'mooney', 'moore', 'morales', 'moran', 'moreno', 'morgan', 'morin', 'morris', 'morrison', 'morrow', 'morse', 'morton', 'moses', 'mosley', 'moss', 'mueller', 'mullen', 'mullins', 'munoz', 'murphy', 'murray', 'myers', 'nancy', 'nash', 'natasha', 'navarro', 'neal', 'neil', 'nelson', 'newman', 'newton', 'nguyen', 'nichols', 'nicholson', 'niels', 'nielsen', 'nieves', 'nixon', 'noah', 'noble', 'noel', 'nolan', 'norman', 'norris', 'norton', 'nunez', 'obama', 'obrien', 'ochoa', 'oconnor', 'odom', 'odonnell', 'oliver', 'olivia', 'olsen', 'olson', 'oneal', 'oneil', 'oneill', 'orr', 'ortega', 'ortiz', 'osborn', 'osborne', 'owen', 'owens', 'pace', 'pacheco', 'paco', 'padilla', 'page', 'pahl', 'palmer', 'park', 'parker', 'parks', 'parrish', 'parsons', 'pat', 'pate', 'patel', 'patricia', 'patrick', 'patterson', 'patton', 'paul', 'paula', 'pauline', 'pavel', 'payne', 'pearson', 'peck', 'pedro', 'pena', 'pennington', 'perez', 'perkins', 'perry', 'peter', 'peters', 'petersen', 'peterson', 'petr', 'petty', 'phelps', 'phil', 'philip', 'phillip', 'phillips', 'pickett', 'pierce', 'pierre', 'pittman', 'pitts', 'pollard', 'poole', 'pope', 'porter', 'potter', 'potts', 'powell', 'powers', 'pratt', 'preston', 'price', 'prince', 'priscilla', 'pruitt', 'puckett', 'pugh', 'quinn', 'ramirez', 'ramos', 'ramsey', 'randall', 'randolph', 'rasmussen', 'ratliff', 'ray', 'raymond', 'reed', 'reese', 'reeves', 'reid', 'reilly', 'reyes', 'reynolds', 'rhodes', 'ricardo', 'rice', 'rich', 'richard', 'richards', 'richardson', 'richie', 'richmond', 'rico', 'riddle', 'riggs', 'riley', 'rios', 'rivas', 'rivera', 'rivers', 'roach', 'rob', 'robbins', 'roberson', 'robert', 'roberts', 'robertson', 'robinson', 'robles', 'rocha', 'rod', 'rodgers', 'rodriguez', 'rodriquez', 'roger', 'rogers', 'rojas', 'rollins', 'roman', 'romero', 'ron', 'ronald', 'rosa', 'rosales', 'rosario', 'rose', 'ross', 'roth', 'rowe', 'rowland', 'roy', 'ruiz', 'rush', 'russell', 'russo', 'ruth', 'rutledge', 'ryan', 'sal', 'salas', 'salazar', 'salinas', 'salvador', 'salvatore', 'sampson', 'sanchez', 'sanders', 'sandoval', 'sandra', 'sanford', 'santana', 'santiago', 'santos', 'sarah', 'sargent', 'saunders', 'savage', 'sawyer', 'schmidt', 'schneider', 'schroeder', 'schultz', 'schwartz', 'scott', 'sears', 'sellers', 'serrano', 'sexton', 'shaffer', 'shannon', 'sharon', 'sharp', 'sharpe', 'shaun', 'shaw', 'shelton', 'shepard', 'shepherd', 'sheppard', 'sherman', 'shields', 'short', 'silva', 'simmons', 'simon', 'simone', 'simpson', 'sims', 'singleton', 'skinner', 'slater', 'sloan', 'small', 'smith', 'smythe', 'snider', 'snow', 'snowden', 'snyder', 'solis', 'solomon', 'sophia', 'sophie', 'sophy', 'sosa', 'soto', 'sparks', 'spears', 'spence', 'spencer', 'stafford', 'stanley', 'stanton', 'stark', 'steele', 'stein', 'steph', 'stephanie', 'stephany', 'stephen', 'stephens', 'stephenson', 'stephy', 'steve', 'steven', 'stevens', 'stevenson', 'stevie', 'stewart', 'stig', 'stokes', 'stone', 'stout', 'strickland', 'strong', 'stuart', 'suarez', 'sullivan', 'summers', 'susan', 'susie', 'sutton', 'suzane', 'suzanna', 'suze', 'swanson', 'sweeney', 'sweet', 'sydney', 'sykes', 'sylva', 'sylvia', 'talley', 'tanner', 'tate', 'taylor', 'teresa', 'terrell', 'terry', 'theresa', 'thomas', 'thompson', 'thornton', 'tillman', 'tobias', 'todd', 'tom', 'tony', 'torres', 'townsend', 'tran', 'travis', 'trevino', 'trujillo', 'tucker', 'turner', 'tyler', 'tyson', 'underwood', 'valdez', 'valencia', 'valentine', 'valenzuela', 'vance', 'vang', 'vargas', 'vasquez', 'vaughan', 'vaughn', 'vazquez', 'vega', 'velasquez', 'velazquez', 'velez', 'vic', 'vicki', 'vicky', 'victor', 'victoria', 'villarreal', 'vincent', 'vinson', 'vivian', 'wade', 'wagner', 'walker', 'wall', 'wallace', 'waller', 'walls', 'walsh', 'walter', 'walters', 'walton', 'wang', 'ward', 'ware', 'warner', 'warren', 'washington', 'waters', 'watkins', 'watson', 'watts', 'weaver', 'webb', 'weber', 'webster', 'weeks', 'weiss', 'welch', 'wells', 'west', 'wheeler', 'whitaker', 'white', 'whitehead', 'whitfield', 'whitley', 'whitney', 'wiggins', 'wilcock', 'wilcox', 'wilder', 'wiley', 'wilkerson', 'wilkins', 'wilkinson', 'willard', 'willcock', 'willcockson', 'william', 'williams', 'williamson', 'willis', 'wilson', 'winters', 'wise', 'witherspoon', 'witt', 'wolf', 'wolfe', 'wong', 'wood', 'woodard', 'woods', 'woodward', 'wooten', 'workman', 'wright', 'wyatt', 'wynn', 'yang', 'yates', 'york', 'young', 'zamora', 'zimmerman', 'zoe', 'zuckerberg', );