[Boston.pm] a car talk puzzle

2004-09-08 Thread Chris Devers
This seems like something that would be fun to solve with Perl: RAY: I have, written on a piece of paper in front of me, a word that is plural and also masculine. Now, I know we don't have masculine and feminine words in English the way we do in Italian or French. But, we do have

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Tolkin, Steve
this is the quickest way to solve the problem in programmer time. Steve -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 2:29 PM To: Boston Perl Mongers Subject: [Boston.pm] a car talk puzzle This seems like something that would be fun

Re: [Boston.pm] a car talk puzzle

2004-09-08 Thread Kripa Sundar
Dear Chris, The word I have written here is [...] masculine, and ends in s. Not only that, but you change this word from plural to singular and from masculine to feminine, all by adding an s to it! [...] If the word in question is in /usr/share/dict/words, then it should be one

Re: [Boston.pm] a car talk puzzle

2004-09-08 Thread Ronald J Kimball
On Wed, Sep 08, 2004 at 03:09:59PM -0400, Tolkin, Steve wrote: * Clearly * is feminine and singular and I think that does have a masculine connotation. That is not the correct answer. :) There's a much more common word pair, where the singular

Re: [Boston.pm] a car talk puzzle

2004-09-08 Thread Kripa Sundar
Dear Chris, I wrote: || % perl -wMstrict -lne 'use vars qq.%x.; (my $y = $_) =~ s/ss$/s/; \ || print if $x{$y}; $x{$_}++;' /usr/dict/words || ass || buss || canvass || discuss || Douglass || hiss || % [...] The Lingua::EN::Inflect approach would obviously not

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Tolkin, Steve wrote: If the word in question is in /usr/share/dict/words Big if, it turns out. I cheated, the answer is here. DON'T READ THIS IF YOU HATE SPOILERS: http://www.cartalk.com/content/puzzler/transcripts/200346/answer.html Looking back at my /usr/share/dict/words,

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Jeremy Muhlich
On Wed, 2004-09-08 at 15:43, Chris Devers wrote: Looking back at my /usr/share/dict/words, the singular form of the word doesn't show up I find that kind of hard to believe... What unix are you running? Anyway, here's my submission (I initially envisioned some xargs/grep stuff at the end but

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Cox, Mark
Using your script Jeremy, my dictionary (Solaris 5.8) came up with one that I like Ogres-Ogress :-) --Mark On Wednesday, September 08, 2004 4:17 PM, Jeremy Muhlich wrote: grep 'ss$' /usr/share/dict/words | sed -e s/ss// | \ cat - /usr/share/dict/words | sort | uniq -c | grep ' 2' That

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Jeremy Muhlich wrote: On Wed, 2004-09-08 at 15:43, Chris Devers wrote: Looking back at my /usr/share/dict/words, the singular form of the word doesn't show up I find that kind of hard to believe... That was a think-o -- the singular is there, the plural isn't. What unix are you

RE: [Boston.pm] a car talk puzzle

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Cox, Mark wrote: Using your script Jeremy, my dictionary (Solaris 5.8) came up with one that I like Ogres-Ogress Ya know, Shrek and Fiona meet both of these solutions to the puzzle :-) heh... -- Chris Devers ___ Boston-pm mailing

Re: [Boston.pm] a car talk puzzle

2004-09-08 Thread David Cantrell
Chris Devers wrote: I spent last night reading the entire Oxford English Dictionary, and I only found one example for which this works. That was a *very* long night. -- David Cantrell | Hero of the Information Age Us Germans take our humour very seriously -- German cultural attache

Re: [Boston.pm] a car talk puzzle

2004-09-08 Thread Greg London
David Cantrell said: Us Germans take our humour very seriously -- German cultural attache talking to the Today Programme, about the German supposed lack of a sense of humour, 29 Aug 2001 I assure you, vee have vays ov makink you laugh... Joke number one...