From: Mikhail Yakshin <greycat@altlinux.ru> To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru> Subject: Re: [sisyphus] Re: countable nouns Date: Mon, 25 Jul 2005 12:11:58 +0400 Message-ID: <42E49ECE.9080005@altlinux.ru> (raw) In-Reply-To: <20050722214838.GW24898@solemn.turbinal.org> Alexey Tourbin wrote: > On Fri, Jul 22, 2005 at 11:01:45PM +0400, Sergey V Turchin wrote: > >>>$ count 3 dependency >>>3 dependencys >> >>вроде dependencies, если исключений нет > > > Мне нужна программа, которая считает, типа > > $ count 10 штука > 10 штук > $ count 20 штука > 22 штуки 20 -> 22? %) > $ > > только по-английски. Самому писать неохота. В общем случае - это невозможно, только если словарь заводить. Там масса исключений, особенно в районе заимствованных слов, да еще и таких неприятных, когда даже носители языка не могут между собой разобраться, как правильно (вроде person - persons - personae, machine - machines - machinae). А если покрыть большинство случаев не считая исключений, то что-то вроде sed 's/y$/ie/;s/s$/se/;s/f$/ve/;s/$/s/;' -- WBR, Mikhail Yakshin AKA GreyCat ALT Linux [http://www.altlinux.ru] [xmpp:greycat@altlinux.org]
next prev parent reply other threads:[~2005-07-25 8:11 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-07-22 18:38 [sisyphus] " Alexey Tourbin 2005-07-22 19:01 ` [sisyphus] " Sergey V Turchin 2005-07-22 21:48 ` Alexey Tourbin 2005-07-25 8:11 ` Mikhail Yakshin [this message] 2005-07-25 16:18 ` Alexey Tourbin 2005-07-26 9:53 ` Mikhail Yakshin 2005-07-26 14:38 ` [sisyphus] [JT] " Michael Shigorin 2005-07-22 20:37 ` [sisyphus] " Alexey Rusakov 2005-07-25 16:59 ` Ivan Adzhubey 2005-07-23 15:33 ` Alexey Voinov
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=42E49ECE.9080005@altlinux.ru \ --to=greycat@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /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
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git