[
https://issues.apache.org/jira/browse/TEXT-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007528#comment-16007528
]
Bruno P. Kinoshita commented on TEXT-25:
----------------------------------------
Yup, it provides a way to extend it, but I would suggest offering a few
implementations, as in Commons CSV parser. The default could be English, but
maybe we could provide French, Spanish, and Portuguese too. And maybe provide
another strategy that would simply build the parser from a locale.
We could provide ResourceBundles if there are not some available already. Then
simply match ResourceBundle against the locale and create the parser.
Ideally, the same approach for internationalization in Commons Text for the
Duration Parser would be re-used in the Human Names Parser, and for future
modules that may require such feature.
> Add a duration parser
> ---------------------
>
> Key: TEXT-25
> URL: https://issues.apache.org/jira/browse/TEXT-25
> Project: Commons Text
> Issue Type: New Feature
> Reporter: Bruno P. Kinoshita
> Assignee: Bruno P. Kinoshita
> Priority: Minor
> Fix For: 1.1
>
>
> Duration parses interpret text such as *2 hours, 1 mn and 22sec*.
> Examples exist, such as https://github.com/jchampemont/gunip, written in
> Javaby Jean Champémont, inspired by https://github.com/domchristie/juration
> (JavaScript).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)