From owner-freebsd-questions@FreeBSD.ORG Thu Feb 9 09:03:38 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0FC016A420 for ; Thu, 9 Feb 2006 09:03:38 +0000 (GMT) (envelope-from urs-on-debian-list@lampshade.ch) Received: from lampshade.ch (c-213-160-39-14.customer.ggaweb.ch [213.160.39.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BCCA43D46 for ; Thu, 9 Feb 2006 09:03:38 +0000 (GMT) (envelope-from urs-on-debian-list@lampshade.ch) Received: from [192.168.1.15] (unknown [212.41.67.195]) by lampshade.ch (Postfix) with ESMTP id 5FFB53C025 for ; Wed, 8 Feb 2006 22:11:30 +0100 (CET) Message-ID: <43EA5E57.3050905@lampshade.ch> Date: Wed, 08 Feb 2006 22:10:47 +0100 From: Urs Schroffenegger User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org References: <7.0.1.0.2.20060208202634.0211cea8@broadpark.no> In-Reply-To: <7.0.1.0.2.20060208202634.0211cea8@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: A script for poets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 09:03:38 -0000 Kristian Vaaf wrote: > > Hello! > > Again with my script requests, this time I'm wondering if anybody > has ever felt like writing a shell script that makes it easy to write > rhymes, > poems or just make up funny lines. > > http://www.rhymer.com is a great place, but unfortunately it requires > a browser. > > Or maybe this is a feature that extends beyond the purpose of shell > scripting, > and that maybe for such I should start looking into languages like Ruby? > > Hoping for generous expert advise. > > Thank you, peasants and poets :) > > Vaaf (wuff) Hello, writing sentences isn't an easy task for a program, because you need some understanding of the meaning of the sentence and some times a good grab of the peculiar grammar quirks of a language. Have a look at google translate to have an example of the results :-D A rhyming dictionnary should be possible to do, with a database of syllabes and pronunciation, but you need to fill the database first... For writing funny sentences, have a look at the "polygen" program: it writes sentences according to a defined grammar: http://freshmeat.net/projects/polygen/ I know it has a debian package and works under macosx and windows, so I don't think there should be problems compiling it under freebsd. The main site is in italian, though, I haven't found an english version. urs