[ 
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)

Reply via email to