From 7f591cf6f80b0a7b6cb4e2975eb486ab31b7bf3c Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 2 Mar 2024 14:53:35 +1300 Subject: [PATCH] Additional prefixes & suffixes This picks up from https://github.com/theiconic/name-parser/pull/54 and https://github.com/theiconic/name-parser/pull/45 but only the additional prefixes & suffixes - not the logic --- src/Language/English.php | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/Language/English.php b/src/Language/English.php index 08d9585..b4533d2 100644 --- a/src/Language/English.php +++ b/src/Language/English.php @@ -12,44 +12,76 @@ class English implements LanguageInterface '3rd' => '3rd', '4th' => '4th', '5th' => '5th', + '6th' => '6th', + '7th' => '7th', + '8th' => '8th', + '9th' => '9th', + '10th' => '10th', 'i' => 'I', 'ii' => 'II', 'iii' => 'III', 'iv' => 'IV', 'v' => 'V', + 'vi' => 'VI', + 'vii' => 'VII', + 'viii' => 'VIII', + 'ix' => 'IX', + 'x' => 'X', 'apr' => 'APR', 'cme' => 'CME', + 'dc' => 'DC', 'dds' => 'DDS', 'dmd' => 'DMD', + 'do' => 'DO', + 'dsw' => 'DSW', 'dvm' => 'DVM', + 'emba' => 'EMBA', 'esq' => 'Esq', + 'esquire' => 'Esq', 'jr' => 'Jr', 'junior' => 'Junior', + 'lcsw' => 'LCSW', 'ma' => 'MA', + 'mba' => 'MBA', 'md' => 'MD', + 'ms' => 'MS', + 'msw' => 'MSW', 'pe' => 'PE', 'phd' => 'PhD', + 'psyd' => 'PsyD', 'rph' => 'RPh', 'senior' => 'Senior', 'sr' => 'Sr', ]; const SALUTATIONS = [ + 'dame' => 'Dame', 'dr' => 'Dr.', 'fr' => 'Fr.', + 'hon' => 'Hon.', + 'honorable' => 'Hon.', + 'the honorable' => 'Hon.', + 'lady' => 'Lady', + 'lord' => 'Lord', 'madam' => 'Madam', 'master' => 'Mr.', 'miss' => 'Miss', + 'missus' => 'Mrs.', 'mister' => 'Mr.', 'mr' => 'Mr.', 'mrs' => 'Mrs.', 'ms' => 'Ms.', 'mx' => 'Mx.', + 'pastor' => 'Pr.', + 'pr' => 'Pr.', 'rev' => 'Rev.', + 'reverend' => 'Rev.', + 'rt hon' => 'Rt Hon', 'sir' => 'Sir', 'prof' => 'Prof.', + 'professor' => 'Prof.', 'his honour' => 'His Honour', - 'her honour' => 'Her Honour' + 'her honour' => 'Her Honour', ]; const LASTNAME_PREFIXES = [