caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: Inflection lib for ocaml ?
Date: Fri, 19 Jun 2009 07:59:42 +0000 (UTC)	[thread overview]
Message-ID: <slrnh3mhbe.s34.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <9abb4a670906182355l4c797dc3x2317e8c0dcd03fbe@mail.gmail.com>

On 19-06-2009, Pascal Rigaux <pascal@rigaux.org> wrote:
> 2009/6/19 Conglun Yao <yaoconglun@gmail.com>:
>
>> I'm wondering is there any library in OCaml performing word inflection
>> between singular and plural, like Lingua-EN-Inflect in perl. Or someone is
>> already doing the work?
>
> not really comparable to Lingua-EN-Inflect, but if you want one day to
> have i18n and you are under linux, ngettext is quite powerful.
> cf http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html
>

FYI, a pure OCaml implementation of ngettext, with plural support, can
be found in ocaml-gettext:
http://le-gall.net/sylvain+violaine/ocaml-gettext.html

Regards,
Sylvain Le Gall


  reply	other threads:[~2009-06-19  7:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19  2:02 Conglun Yao
2009-06-19  6:55 ` [Caml-list] " Pascal Rigaux
2009-06-19  7:59   ` Sylvain Le Gall [this message]
2009-06-19  9:52 ` Richard Jones
2009-06-19 15:03   ` Conglun Yao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnh3mhbe.s34.sylvain@gallu.homelinux.org \
    --to=sylvain@le-gall.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).