Abstract
We present an implementation of an algorithm for calculating the atom economy of chemical reactions using reaction SMILES. Python programming is used to interface the RDKit library to parse and interpret chemical structures, providing accurate and efficient chemical sustainability computations. By implementing a robust algorithm to handle stoichiometric coefficients and multiple reactions, the approach provides a comprehensive analysis of atom economy, a metric essential for green chemistry practices. Additionally, this calculation approach can be easily integrated into AI applications that generate a large amount of chemical reactions, as a screening and optimization step, further enhancing the potential for sustainable chemical process design. We demonstrate its application through several case studies, highlighting its potential to aid in the design of more sustainable chemical processes. We demonstrate this approach using aspirin and its multiple synthetic routes.