aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-08-28 15:40:21 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-09-25 20:23:05 +0200
commitf0881305402f3dff56f99fcc4cbc8b615581b780 (patch)
tree5d475e2e95138f63ad249f4d44a453999c1c14f6 /README
downloadmendeleev-f0881305402f3dff56f99fcc4cbc8b615581b780.tar.gz
C, Haskell, Python, Fortran
Diffstat (limited to 'README')
-rw-r--r--README38
1 files changed, 38 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..2205d7c
--- /dev/null
+++ b/README
@@ -0,0 +1,38 @@
+Mendeleev — find chemical elements in words.
+
+For example, the word "Moscow" can be split in the following ways:
+ Mo S C O W,
+ Mo S Co W,
+ Mo Sc O W,
+where:
+ Mo — Molybdenum,
+ S — Sulfur,
+ Sc — Scandium,
+ C — Carbon,
+ Co — Cobalt,
+ W — Wolfram (Tungsten).
+
+When a character cannot be found among the chemical elements, it's replaced
+with a question mark:
+ language -> La N ? U Ag ?
+
+There are implementations in several programming languages. Each program
+accepts words as arguments and prints all the possible combinations,
+for example:
+
+ $ ./mendeleev-c preprocessor
+ preprocessor:
+ P Re P ? O C Es S O ?
+ P Re P ? O Ce S S O ?
+ P Re Pr O C Es S O ?
+ P Re Pr O Ce S S O ?
+ Pr ? P ? O C Es S O ?
+ Pr ? P ? O Ce S S O ?
+ Pr ? Pr O C Es S O ?
+ Pr ? Pr O Ce S S O ?
+
+This software is Public Domain. See the LICENSE file for details.
+
+Dmitri Ivanovich Mendeleev (1834–1907) was a Russian chemist and inventor
+known for formulating the Periodic Law.
+