From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 93DA0BC37 for ; Fri, 19 Jun 2009 09:59:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhICAOfhOkpQW+UCe2dsb2JhbACYaAEBFiQEtHyECQU X-IronPort-AV: E=Sophos;i="4.42,250,1243807200"; d="scan'208";a="31558734" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 19 Jun 2009 09:59:59 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MHZ0v-00009N-32 for caml-list@inria.fr; Fri, 19 Jun 2009 07:59:57 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 07:59:57 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jun 2009 07:59:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Inflection lib for ocaml ? Date: Fri, 19 Jun 2009 07:59:42 +0000 (UTC) Message-ID: References: <9abb4a670906182355l4c797dc3x2317e8c0dcd03fbe@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre1.0.0-2 (Linux) Sender: news X-Spam: no; 0.00; le-gall:01 inflection:01 lib:01 ocaml:01 ocaml:01 inflection:01 plural:01 gettext:01 plural:01 le-gall:01 2009:98 wrote:01 fyi:02 gnu:03 library:03 On 19-06-2009, Pascal Rigaux wrote: > 2009/6/19 Conglun Yao : > >> 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