Chemical Words List 197
An anonymous reader writes "Mark Nandor, a teacher of mathematics at The Wellington School, has recently posted a new chemical words page. For those who haven't seen this before, it is a list of English words that can be spelled using chemical symbols."
Nifty. (Score:3, Interesting)
Valid molecules? (Score:5, Interesting)
Phonic Frugalities (Score:2, Interesting)
(Note: these are just words found and rearranged to form a sentence)
The wooden periodic table (Score:5, Interesting)
On the site he has a mathematica based app [theodoregray.com] (he works at Wolfram) which will take a string of characters and attempt to construct it from element sybols.
One Line (Though a long one) (Score:5, Interesting)
Though I'll admit I used a one line python program to construct the regular expression from a file listing the chemical element symbols.
Re:One Line (Though a long one) (Score:4, Interesting)
I ran this regular expression, using egrep, against the ENABLE wordlist. It took approximately ONE SECOND on a 1.6GHz P4 with 512MB RAM, not exactly a supercomputer. Mathematica is a great tool for some purposes, but not for this.
Re:One Line (Though a long one) (Score:2, Interesting)
I just compared my results, using egrep, with Nandor's. He failed to find two valid words "berg" and "urges", but found three non-words, "cryosurg ical", "urg es", and "v irgins". The correct count is therefore 26,811.
Howdy, kids. (Score:5, Interesting)
Yes, it is a waste of time.
Yes, I'm sure there are better/faster ways to generate the list of words - the reason I used Mathematica is that I was finding the 2x2, 3x3, 4x4, 5x5,
No, I'm not a professor (not sure how that one got started). I have a Ph.D. in physics from Ohio State, so the parents and administration at Wellington make me call myself "Dr. Nandor"; otherwise, I'd just as soon go by "Mr. Nandor." Besides, the kids like calling me "Doc."
No, I didn't even think to censor the list. Oops. Since it's on a school website, I'll have to *** some things out.
No, I'm not sure how "berg" didn't make it onto the list, and I'll have to add it. I only found Rg words at the end of my "work," since I didn't know element 111 had actually been officially named, so I must have copied/pasted it in incorrectly into code I was using.
Hope y'all enjoyed it for the random "entertainment" it was meant to be. My brother submitted the story, so.... thanks?
Nandor
let's reproduce Belmolis's results. (Score:3, Interesting)
From the article: [wellington.org] Reader jefu [slashdot.org] has produced (but not yet disclosed) a one-liner that gives the correct word-list in one second [slashdot.org]! Let's try to reproduce his results![1]
Slashdot Reader CONTEST
As an exercise to the slashdot reader, let's reproduce jefu's results, only this time noting total programming time as well. If you're interested, type:
$ echo 'started programming!'; date
at your bash prompt now! Ladies and gentleman, start your engines! Remember: post only your total programming time, and total execution time, not the actual one-liner you produce. (Don't ruin it for other readers.) May the power of script be with you!
[1] jefu, please refrain from disclosing your one-liner for generating the e-grep line above until the completion of the contest
Re:let's reproduce Belmolis's results. (Score:3, Interesting)
My total time to find a list of the elements and create the regexp, which I actually did prior to reading OP's comment, plus finding and downloading a copy of the ENABLE list, was about ten minutes. For anyone with much experience using regular expressions constructing the regexp is pretty trivial. Even typing it all in manually while looking at a list of the elements can be done in a few minutes. So, sure, it isn't 25 hours vs. one second, but it is something like 25 hours vs. 10 minutes.
Pop Quiz for Chem Geeks or Biologists (Score:3, Interesting)
Don't google it -- just put down your best answer, and we'll see what firms up.