caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Conglun Yao <yaoconglun@gmail.com>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Inflection lib for ocaml ?
Date: Fri, 19 Jun 2009 16:03:04 +0100	[thread overview]
Message-ID: <f7b50d2a0906190803r15ee8268y9f98f18a69100789@mail.gmail.com> (raw)
In-Reply-To: <20090619095258.GA22125@annexia.org>

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Thanks for all of your quick responses.

Gettext seems a bit more complex than what I want. It would be better to
have a simple function to implement the plural and singular conversion like
the one in Ruby on Rails.

Like
   Inflection.plural "some_word"
   Inflection.singular "some_word"

Inflection module defines the conversion roles.
http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html

May be I should have a try with perl4caml + Lingua-En-Inflect,  but Lingua
only does conversion from singular to plural,  how to do the opposite
conversion (plural to singular)

Thanks.

Conglun



On Fri, Jun 19, 2009 at 10:52 AM, Richard Jones <rich@annexia.org> wrote:

> On Fri, Jun 19, 2009 at 03:02:36AM +0100, Conglun Yao wrote:
> > 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?
>
> You should be able to call the perl module directly using
> perl4caml.
>
> Rich.
>
> --
> Richard Jones
> Red Hat
>

[-- Attachment #2: Type: text/html, Size: 1584 bytes --]

      reply	other threads:[~2009-06-19 15:03 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
2009-06-19  9:52 ` [Caml-list] " Richard Jones
2009-06-19 15:03   ` Conglun Yao [this message]

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=f7b50d2a0906190803r15ee8268y9f98f18a69100789@mail.gmail.com \
    --to=yaoconglun@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=rich@annexia.org \
    /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).