Skip to content

Code to find words composed of elements in the periodic table which are strictly increasing. That is, the periodic number of each element in the word is larger than all preceding elements.

Notifications You must be signed in to change notification settings

mcleinman/words-of-increasing-periodic-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

words-of-increasing-periodic-elements

Code to find words composed of elements in the periodic table which are strictly increasing. That is, the periodic number of each element in the word is larger than all preceding elements.

Purpose

The internet has plenty of lists of words composed of periodic element abbreviations. For a project I needed a subset of these words that were just composed of strictly increasing perodic elements, so I wrote this little bit of code.

Element-Words

I used Jeff Thompson's list of words in the periodic table, but you can use any list that capitalizes words appropriately. (Helium/Nitrogen would be "HeN", not "HEN" or "Hen".) This file must have one word per line, and must be saved as WordFile.txt.

Output

See my gist for the output of this code.

About

Code to find words composed of elements in the periodic table which are strictly increasing. That is, the periodic number of each element in the word is larger than all preceding elements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages