for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheIconic\NameParser\Language;
use TheIconic\NameParser\LanguageInterface;
class English implements LanguageInterface
{
const SUFFIXES = [
'1st' => '1st',
'2nd' => '2nd',
'3rd' => '3rd',
'4th' => '4th',
'5th' => '5th',
'i' => 'I',
'ii' => 'II',
'iii' => 'III',
'iv' => 'IV',
'v' => 'V',
'apr' => 'APR',
'cme' => 'CME',
'dmd' => 'DMD',
'jr' => 'Jr',
'junior' => 'Junior',
'ma' => 'MA',
'md' => 'MD',
'pe' => 'PE',
'phd' => 'PhD',
'rph' => 'RPh',
'senior' => 'Senior',
'sr' => 'Sr',
];
const SALUTATIONS = [
'dr' => 'Dr.',
'fr' => 'Fr.',
'madam' => 'Madam',
'master' => 'Mr.',
'miss' => 'Miss',
'mister' => 'Mr.',
'mr' => 'Mr.',
'mrs' => 'Mrs.',
'ms' => 'Ms.',
'mx' => 'Mx.',
'rev' => 'Rev.',
'sir' => 'Sir',
'prof' => 'Prof.',
'his honour' => 'His Honour',
'her honour' => 'Her Honour'
const LASTNAME_PREFIXES = [
'da' => 'da',
'de' => 'de',
'del' => 'del',
'della' => 'della',
'der' => 'der',
'di' => 'di',
'du' => 'du',
'la' => 'la',
'pietro' => 'pietro',
'st' => 'st.',
'ter' => 'ter',
'van' => 'van',
'vanden' => 'vanden',
'vere' => 'vere',
'von' => 'von',
public function getSuffixes(): array
return self::SUFFIXES;
}
public function getSalutations(): array
return self::SALUTATIONS;
public function getLastnamePrefixes(): array
return self::LASTNAME_PREFIXES;
// see German for further information
public function getExtensions(): array
return [];
public function getTitles(): array
public function getCompanies(): array