convert a string of text into a combination of chemical element symbols
- Rust 52.2%
- Python 47.8%
| src | added rustfmt.toml to USE TABS | |
| .gitignore | move to rust implementation | |
| Cargo.lock | move to rust implementation | |
| Cargo.toml | move to rust implementation | |
| LICENSE | Initial commit | |
| README.md | move to rust implementation | |
| rustfmt.toml | added rustfmt.toml to USE TABS | |
String2ChemSym
String2ChemSym converts any given string for lets say a name into a combinations of symbols of chemical elements.
There exists a rust and a python implementation. The python one is in German.
Examples
$ string2chemsym agnes
┌─────┬─────┬─────┐
│ Ag │ N │ Es │
│ 47 │ 7 │ 99 │
└─────┴─────┴─────┘
┌─────┬─────┬─────┐
│ Ag │ Ne │ S │
│ 47 │ 10 │ 16 │
└─────┴─────┴─────┘
$ string2chemsym banana
┌─────┬─────┬─────┐
│ Ba │ Na │ Na │
│ 56 │ 11 │ 11 │
└─────┴─────┴─────┘
Future Plans
- expand to creation of svg images with the result
- improve the algorithm