You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2015/01/04 22:43:34 UTC

[jira] [Commented] (SANDBOX-487) Human name parser

    [ https://issues.apache.org/jira/browse/SANDBOX-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264052#comment-14264052 ] 

Benedikt Ritter commented on SANDBOX-487:
-----------------------------------------

The HumanNameParser looks nice. What I don't like is, that the parser has state. I would rather define the API like:

{code:java}
String input =  "Sergio Vieira de Mello";
HumanNameParserParser parser = new HumanNameParserParser(input);
Name name = parser.parseName()
String firstName = name.getFirst(); // Sergio
String nicknames = name.getNicknames(); // <empty>
// ...
{code}

> Human name parser
> -----------------
>
>                 Key: SANDBOX-487
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-487
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: Commons Text
>            Reporter: Bruno P. Kinoshita
>            Priority: Minor
>              Labels: name, parser, text
>
> The project [HumanNameParser.java|http://tupilabs.github.io/HumanNameParser.java/] is a port to Java of the [HumanNameParser.php|http://jasonpriem.org/human-name-parse/], both licensed under the MIT License. 
> This issue was created to discuss a similar parser, based on the Java version, to the [text] component.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)