home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!sun-barr!cs.utexas.edu!rutgers!psinntp!psinntp!fafnir!mckelvey
- From: mckelvey@fafnir.com (James W. McKelvey)
- Newsgroups: comp.unix.questions
- Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
- Message-ID: <Bt7t6C.2H0@fafnir.com>
- Date: 19 Aug 92 05:13:23 GMT
- References: <512@alden.UUCP>
- Sender: mckelvey@fafnir.com (James W. McKelvey)
- Reply-To: mckelvey@fafnir.com
- Organization: Fafnir Software, Saugus, CA, USA
- Lines: 80
-
- In article <512@alden.UUCP> sgr@alden.UUCP (Stan Ryckman) writes:
- > In article <1992Aug10.192853.3209@kopachuk.uucp> dcb@kopachuk.uucp (David
- Breneman) writes:
- > >In article <1992Aug2.152356.7333@news.acns.nwu.edu>
- navarra@casbah.acns.nwu.edu (John Navarra) writes:
- > >>
- > >>
- > >>For today's sed problem let us go all the way back to early grade school
- > >>where we heard the famous rule:
- > >>
- > >>'I' before "E" except after "C".
- > >>
- > >>This is the rule I want to implement in sed. So far, here is my progress:
- > >
- > >Process deleted...
- > >
- > >>Wonderful, Wonderful! I needed to misspell words in order to correct
- > >>other words, then change all the misspelled words back in addition to
- > >>other misspelled words just like them!
- > >
- > >When you get up, you can try adding the second half of the rule:
- > >
- > >"...or sounding like "A" as in neighbor or weigh."
- >
- > Oh, it gets a lot worse than that.
- > How do you pronounce "either?"
- > Does anyone named "Neil" pronounce his name as if "Nail?"
- >
- > In fact, I ran "egrep -i '(^|[^c])ei' /usr/dict/words"; the
- > first few (of 213 matches) are:
- > absenteeism <- not "A" sound
- > Aeneid <- not "A" sound
- > agreeing <- not "A" sound
- > albeit <- not "A" sound
- > Alexei <- not "A" sound
- > Anaheim <- not "A" sound
- > Andrei <- I don't know
- > aniseikonic <- I have no idea!
- > apartheid <- not "A" sound
- > atheism <- not "A" sound"
- > atheist <- not "A" sound
- >
- >
- > What would Einstein think about this "rule?" :-)
- > ^^ ^^
- > >
- > >Be sure to post your solution. :-)
- >
- > Yeah, especially if you can find one that will get all these
- > words right! :-) :-)
- >
- > Stan.
- > --
- > This .signature has expired. Call 1-900-YOU-FOOL to find out why.
- > Stan Ryckman sgr@alden.UUCP
-
- Einstein is German, and doesn't have to obey English rules. Aeneid is Greek,
- so ditto. Apartheid is what, Afrikaans? so ditto. Anaheim is probably German
- also. Alexei, a foreign name, maybe from Russian, so ditto.
-
- The others have a syllable split between the e and the i; absenteeism is
- absentee plus ism. This also explains words like "weird", which is really two
- syllables, "we-ird". Also, come to think of it, Aeneid, "Aen-e-id".
-
- So the problem is your "rule" is bogus and your teachers lied to you. The real
- rule is:
-
- I before E except before C and in sounds of "A" like "neighbor" and "weigh",
- this being for syllables only, not compound words, and it doesn't necessarily
- apply to words imported from foreign languages, even English proper names may
- deviate, and anyway there are exceptions like "either".
-
- Whew!
-
- Jim McKelvey mckelvey@fafnir.com
- --
- A man should not strive to eliminate his complexes, but to get in
- accord with them; they are legitimately what directs his conduct
- in the world. - Sigmund Freud
- Jim McKelvey mckelvey@fafnir.com
-