| 1 |
Revision history for Perl CPAN module Lingua::En::NameParse |
| 2 |
|
| 3 |
1.38 Oct 2018 |
| 4 |
Allowed for names of type Jo A. Lin, thanks to Mike Edwards via Github |
| 5 |
Note that an ambiguity now arises for names such as Mr ME Adam Symonds |
| 6 |
the parser will assume a first name of ME, when it is actually the initials. |
| 7 |
The surname should be Adam-Symonds to parse correctly |
| 8 |
|
| 9 |
Fixed typo in %component_order in NameParse.pm |
| 10 |
Updated report method to not issue warning on empty results from case_all_reversed method |
| 11 |
|
| 12 |
1.37 18 Aug 2018 |
| 13 |
Allow case_all_reverse to work with name type of 'John' (thanks to Hugh S. Myers for reporting this) |
| 14 |
Fixed github issue for EdwardsMike, 2 letter surname not correctly parsed |
| 15 |
Renamed github repo to HumanNameParser |
| 16 |
|
| 17 |
1.36 15 Jul 2016 |
| 18 |
Added religious title Rev (for Reverand RT bug #116080 |
| 19 |
Added more military titles |
| 20 |
Improved documentation |
| 21 |
|
| 22 |
1.35 5 Jul 2016 |
| 23 |
Used github as repository |
| 24 |
Improved documentation |
| 25 |
|
| 26 |
|
| 27 |
1.34 1 Jun 2016 |
| 28 |
Added military title Pvt (for Private in the USA) RT bug #113972 |
| 29 |
|
| 30 |
1.33 22 Apr 2015 |
| 31 |
Removed 'Mr_J_Adam_Smith' name type. Names that were most likely double surnames were being incorrectly parsed |
| 32 |
For example 'Mr A Smythe Taylor' was getting middle name of 'Smythe'. Should be picked up as error. |
| 33 |
Surname should be 'Smythe-Taylor' |
| 34 |
|
| 35 |
Fold all text to upper case prior to parsing, regexp matching is faster if case insensitive |
| 36 |
Note that this means all components are now NameCased by default. |
| 37 |
The case_components method has been removed as the 'components' method achieves the same outcome |
| 38 |
The force_case option has been removed |
| 39 |
|
| 40 |
non_matching text moved from properties to components |
| 41 |
|
| 42 |
Use extended regexp (/x) in grammar for better readability |
| 43 |
Simplified grammar and removed duplicate definitions |
| 44 |
Removed all full stops before parsing as this simplifies grammar, so: Mr. A.B. Smith => Mr AB Smith |
| 45 |
Added more valid prefixes |
| 46 |
'report' method now tests all functions |
| 47 |
removed indirect object notation for 'new' method |
| 48 |
added error and warning description attributes to name object |
| 49 |
|
| 50 |
|
| 51 |
1.32 11 Nov 2013 |
| 52 |
Removed &s from start of subroutine calls (obsolete syntax) |
| 53 |
Fixed typo RT bug 88573 |
| 54 |
case_surname does not process undefined or blank input, stops warning message occuring |
| 55 |
|
| 56 |
1.31 24 Jun 2013 |
| 57 |
Wherever program returned 'undef' changed to just a return statement, fix for RT bug 85491 |
| 58 |
Added error handling to synopsis examples |
| 59 |
|
| 60 |
1.30 31 Mar 2011 |
| 61 |
Added component ordering for Mr_J_Adam_Smith name type, thanks to John Hansen |
| 62 |
Corrected some of the documentation |
| 63 |
Added more military titles |
| 64 |
|
| 65 |
1.29 23 Jan 2011 |
| 66 |
Corrected documentation of case_components module, thanks to John Hansen |
| 67 |
Removed invalid space after /Pilot Officer/ in extended titles grammar, thanks to John Hansen |
| 68 |
Added the 'Mr_J_Adam_Smith' name type, thanks to John Hansen |
| 69 |
Added the 'John' name type, thanks to Graham Seamen |
| 70 |
Moved NameGrammar.pm to Lingua::EN::NameParse::Grammar name space |
| 71 |
|
| 72 |
1.28 3 Jan 2011 |
| 73 |
Added more extended titles including Pilot Officer, Count, Duke, Dutchess, Marquess (thanks to Hugh Myers) |
| 74 |
Allowed T-Bone as a given name (thanks to Hugh Myers) |
| 75 |
Added name type Mr_John_Adam_Smith (thanks to Chris Brown) |
| 76 |
Allowed joint names to be reverse cased |
| 77 |
Fixed bug when printing report on name of unknown type |
| 78 |
Moved saluation paramters from 'new' to 'salutation' method |
| 79 |
Allowed for two types of salutation, given_name and title_plus_surname |
| 80 |
|
| 81 |
1.27 4 Jul 2010 |
| 82 |
Changed my cygwin fstab file to use noacl option for default mount points. |
| 83 |
Before this, the tar tool was creating directories with no read permision. |
| 84 |
|
| 85 |
1.26 3 Jul 2010 |
| 86 |
Made line endings consistent in all files, with Unix style EOL markers |
| 87 |
|
| 88 |
1.25 2 Jul 2010 |
| 89 |
Changed the parse method to match the documentation. It was returning a name |
| 90 |
object and an error flag, when only the flag was required. Note that this |
| 91 |
caused no problem if used as documented, the error value was still assigned |
| 92 |
correctly, and the name object assigned to nothing. Thanks to Chris Prather. |
| 93 |
|
| 94 |
Added 'use warnings' to modules |
| 95 |
|
| 96 |
1.24 6 Jan 2008 |
| 97 |
Removed one more use to $_ in case_surname subroutine. Thanks to Ben Martin |
| 98 |
|
| 99 |
1.23 23 Nov 2006 |
| 100 |
components method now returns undef if name cannot be parsed. Thanks to Patrick Kane. |
| 101 |
Stopped assigning to $_ in case_surname subroutine. Thanks to Richard Walker |
| 102 |
Created examples folder |
| 103 |
Fixed alignment problem in report method |
| 104 |
Removed optional title from John_Adam_Smith name type |
| 105 |
|
| 106 |
1.22 12 Jul 2005 |
| 107 |
Added the Mr_John_Smith_&_Ms_Mary_Jones name type |
| 108 |
Added the John_Smith_&_Mary_Jones name type |
| 109 |
Added the John_&_Mary_Smith name type |
| 110 |
Added the A_Smith_&_B_Jones name type |
| 111 |
Updated distribution to current CPAN requirements |
| 112 |
|
| 113 |
1.21 20 May 2005 |
| 114 |
Fixed bug that was creating a name cased surname of O'sullivan, now O'Sullivan |
| 115 |
Added report method to dump all name properties and components |
| 116 |
Added several new suffixes such as PhD |
| 117 |
|
| 118 |
1.20 16 Feb 2004 |
| 119 |
Fixed bug that was preventing some extended titles, such as 'Major General' |
| 120 |
from working |
| 121 |
|
| 122 |
1.19 27 Dec 2003 |
| 123 |
Fixed bug in rules.t, thanks to Assad Arnaud |
| 124 |
Added more valid surnames in _valid_name, thanks to Peter Schendzielorz |
| 125 |
|
| 126 |
|
| 127 |
1.18 28 Mar 2002 |
| 128 |
Fixed bug in rules.t, thanks to Assad Arnaud |
| 129 |
Added more reserved words |
| 130 |
Added option to use a limited set of common titles (improves speed) |
| 131 |
|
| 132 |
|
| 133 |
1.17 21 Mar 2002: |
| 134 |
Added option to remove joint names from grammar (100% speed improvement!) |
| 135 |
NOTE that by default, joint names (Mr & Mrs AB Smith) are not recognized |
| 136 |
|
| 137 |
Applied correct capitalization to single possessive word, such as French's |
| 138 |
Added Dalle, dela and dall' to list of Italian surname prefixes |
| 139 |
Added San to list of Spanish surname prefixes |
| 140 |
Detect reserved words, such as Pty Ltd in pre parse stage |
| 141 |
|
| 142 |
|
| 143 |
1.16 24 Sep 2001: |
| 144 |
Minor additions to README file |
| 145 |
|
| 146 |
1.15 25 Jul 2001: |
| 147 |
Added more complete list to surname_prefs.txt |
| 148 |
|
| 149 |
Allowed for a surname prefix of Dell', as in Dell'Arte |
| 150 |
|
| 151 |
Added case_all_reversed method to return name in the format of |
| 152 |
surname, initials and/or given_names, useful for alphabetical sorting |
| 153 |
|
| 154 |
Length of given name set to at least 2 characters for name type John_A_Smith |
| 155 |
Names such as "Al B Jones" now parse correctly |
| 156 |
|
| 157 |
Length of given name set to at least 2 characters for name type John_Adam_Smith |
| 158 |
Names such as "Al Brian Jones" now parse correctly |
| 159 |
|
| 160 |
Created a new token for middle names, at least 2 characters long and a look |
| 161 |
ahead to exclude prefixes. Names such as "Mary Jo White" and |
| 162 |
"John Van Der Wald" now parse correctly |
| 163 |
|
| 164 |
|
| 165 |
1.14 19 Jul 2001: |
| 166 |
Moved prefixes and suffixes back into grammar tree to stop invalid combinations |
| 167 |
Removed pre parse stage |
| 168 |
Changed case_surname to correctly capitalize suffixes in roman numeral format |
| 169 |
Removed POD directives from README |
| 170 |
Added J_Adam_Smith name type, thanks to Michael Cesar |
| 171 |
|
| 172 |
1.13 25 Apr 2001: |
| 173 |
|
| 174 |
Initialised values for all parsed name components to empty string |
| 175 |
Fixed POD errors, thanks to Jason Gallagher |
| 176 |
|
| 177 |
1.12 4 Apr 2001: |
| 178 |
Allowed for titles in John_Adam_Smith name type (they were being consumed to early as given names). |
| 179 |
Fixed some incorrect title regular expressions |
| 180 |
Added 'dela' to list of surname Italian prefixes |
| 181 |
|
| 182 |
1.11 24 Feb 2001: |
| 183 |
Fixed bug in Makefile.PL, caused by omission of NameGrammar.pm |
| 184 |
|
| 185 |
1.10 22 Feb 2001: |
| 186 |
Allowed for apostrophes in given names, like D'Artagnan |
| 187 |
Fixed bug for suffixes in 'John_Smith' name type |
| 188 |
Added the John_Adam_Smith name type |
| 189 |
|
| 190 |
Added correct capitalization of possessive proper names such as |
| 191 |
Australia's to case_surname. Thanks to Dennis Ingram. |
| 192 |
|
| 193 |
Precursors and suffixes now detected in pre-parsing stage |
| 194 |
Removed precursor and suffix tree from grammar |
| 195 |
Removed Senior and Junior as suffixes, as they are valid surnames |
| 196 |
Extended range of suffixes in roman numeral format |
| 197 |
Moved grammar definition to separate module |
| 198 |
|
| 199 |
1.05 7 Jan 2001: |
| 200 |
Updated README file |
| 201 |
Added test of lower casing prefixes to rules.t |
| 202 |
|
| 203 |
1.04 10 Dec 2000: |
| 204 |
Allowed for reversed order names where the surname appears first, followed |
| 205 |
by a comma and the remaining components of the name, such as title, |
| 206 |
first name, initials etc. |
| 207 |
|
| 208 |
1.03 25 Jul 2000: |
| 209 |
Added suffixes (like Jnr) to most single names |
| 210 |
Replaced '=head3' because they don't work with perldoc |
| 211 |
Removed search of @INC array in BEGIN subroutine |
| 212 |
Thanks to Douglas Wilson for these requests |
| 213 |
|
| 214 |
1.02 19 Apr 2000: |
| 215 |
Removed title J\.? (abbreviation for Judge) as it clashed with names such |
| 216 |
as J A Smith, J. B. Jones etc. Thanks to Adam Huffman for spotting this bug |
| 217 |
|
| 218 |
1.01 15 Apr 2000: |
| 219 |
auto_clean option now removes commas from input |
| 220 |
Improved regular expressions in 'clean' sub, thanks to Mark Summerfield |
| 221 |
|
| 222 |
Catered for initials with both dots and spaces, such as A. B. Smith, requested by Adam Huffman |
| 223 |
|
| 224 |
1.00 27 Dec 1999: |
| 225 |
Added user defined file of surname capitalization over rides |
| 226 |
Allowed for salutations where precursor is not an estate |
| 227 |
|
| 228 |
0.40 14 Sep 1999: |
| 229 |
Added the Mr_John_A_Smith and John_A_Smith name types |
| 230 |
Allowed for hyphenated given names |
| 231 |
|
| 232 |
0.30 21 Aug 1999: |
| 233 |
Allowed for user defined length of initials |
| 234 |
Added the Mr_John_Smith name type |
| 235 |
Added the John_Smith name type |
| 236 |
Surnames with the D' prefix now correctly capitalised |
| 237 |
|
| 238 |
If a parsed name had no components, the components method returned an odd |
| 239 |
numbered hash and case_components returned 1. Both these methods now return |
| 240 |
undef in this situation |
| 241 |
|
| 242 |
0.10 04 Jul 1999: |
| 243 |
Allowed for lower casing of surname prefixes |
| 244 |
|
| 245 |
0.04 16 May 1999: |
| 246 |
Added test script for rule ordering |
| 247 |
Added more titles, improved documentation |
| 248 |
|
| 249 |
0.03 02 May 1999: |
| 250 |
Altered output of test script to work with Test::Harness |
| 251 |
Modified &clean to remove single leading or trailing space |
| 252 |
|
| 253 |
0.02 01 May 1999: |
| 254 |
Added test script, converted source to Unix format |
| 255 |
|
| 256 |
0.01 25 Apr 1999: First Release |