From lojban-out@lojban.org Sun Feb 08 12:02:18 2004 Return-Path: X-Sender: lojban-out@lojban.org X-Apparently-To: lojban@yahoogroups.com Received: (qmail 66790 invoked from network); 8 Feb 2004 20:02:17 -0000 Received: from unknown (66.218.66.172) by m3.grp.scd.yahoo.com with QMQP; 8 Feb 2004 20:02:17 -0000 Received: from unknown (HELO chain.digitalkingdom.org) (64.81.49.134) by mta4.grp.scd.yahoo.com with SMTP; 8 Feb 2004 20:02:16 -0000 Received: from lojban-out by chain.digitalkingdom.org with local (Exim 4.30) id 1Apv8B-00022E-M4 for lojban@yahoogroups.com; Sun, 08 Feb 2004 12:02:15 -0800 Received: from dsl081-049-134.sfo1.dsl.speakeasy.net ([64.81.49.134] helo=chain.digitalkingdom.org) by chain.digitalkingdom.org with esmtp (Exim 4.30) id 1Apv7c-0001vh-D8; Sun, 08 Feb 2004 12:01:40 -0800 Received: with ECARTIS (v1.0.0; list lojban-list); Sun, 08 Feb 2004 12:01:37 -0800 (PST) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.30) id 1Apv7T-0001vY-GJ for lojban-list@lojban.org; Sun, 08 Feb 2004 12:01:31 -0800 Date: Sun, 8 Feb 2004 12:01:31 -0800 Message-ID: <20040208200131.GO20322@digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org References: <20040208091817.GN20322@digitalkingdom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-archive-position: 7054 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org X-list: lojban-list To: lojban@yahoogroups.com X-eGroups-Remote-IP: 64.81.49.134 X-eGroups-From: Robin Lee Powell From: Robin Lee Powell Reply-To: rlpowell@digitalkingdom.org Subject: [lojban] Re: Regular expression for brivla? X-Yahoo-Group-Post: member; u=116389790 X-Yahoo-Profile: lojban_out X-Yahoo-Message-Num: 21531 On Sun, Feb 08, 2004 at 04:51:45PM +0100, Arnt Richard Johansen wrote: > On Sun, 8 Feb 2004, Robin Lee Powell wrote: > > > Is there a known regular expression that covers all classes of > > brivla? > > > > What about one that's just really close? > > > > Perl extensions are fine. > > From my (admittedly poor) understanding of regexes suggest that it > is going to be very long-winded. The one you presented is, to my mind, an tiny itty-bitty thing. *This* is a long one; from 'man procmailrc': If the regular expression contains `^FROM_DAEMON' it will be substituted by `(^(Mailing-List:|Precedence:.*(junk|bulk |list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a- z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps) |r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR |utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>\t ][^<)]*(\(.*\).*)?)?$([^>]|$)))', which should catch mails coming from most daemons (how's that for a regular expression :-). > Basically, you have to look at only the first five letters, > exclude apostrophes, and see if there are at least two > adjacent consonants. OK. > This, of course, presupposes that you have already determined that > the string you are checking is a valid Lojban word. Any idea how to do that? -Robin -- Me: http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin. "Constant neocortex override is the only thing that stops us all from running out and eating all the cookies." -- Eliezer Yudkowsky http://www.lojban.org/ *** .i cimo'o prali .ui