Grammar-driven SMILES standardization with <i>TokenSMILES</i>
The redundancy of <i>SMILES</i> notation, where multiple strings can describe the same molecule, remains a challenge in computational chemistry and cheminformatics. To mitigate this issue, we introduce <i>TokenSMILES</i>, a grammatical framework that standardizes <i>SMILES</i> into structured sentences composed of context-free words. By applying five syntactic constraints (including branch limitations, balanced parentheses, and aromaticity exclusion), <i>TokenSMILES</i> minimizes redundant <i>SMILES</i> enumerations for alkanes while maintaining valence and octet compliance through semantic parsing rules. <i>TokenSMILES</i> does not replace <i>SMILES</i> but rather formalizes its syntax into a standardized, machine-interpretable form. This grammatical structure enables controlled generation and manipulation of valid <i>SMILES</i> strings, ensuring syntactic and semantic consistency while substantially reducing redundancy. Implemented into <i>SmilX</i>, an open-source tool, <i>TokenSMILES</i> generates valid <i>SMILES</i> with accuracy comparable to existing computational implementations for molecules with low hydrogen deficiency (HDI ≤ 4). Its applicability extends beyond alkanes through stoichiometric modifications such as bond insertion, cyclization, and heteroatom substitution. Nevertheless, challenges remain for highly unsaturated systems, where canonicalization artifacts highlight the need for dynamic feasibility checks. By integrating linguistic principles with cheminformatics, <i>TokenSMILES</i> establishes a scalable framework for systematic chemical space exploration, supporting applications in drug discovery, materials design, and machine learning-driven molecular innovation.
Authors
- Filiberto Ortíz‐Chi (ORCID: https://orcid.org/0000-0002-2859-7633)
- Gabriel Merino (ORCID: https://orcid.org/0000-0003-1961-8321)
- Alán Aspuru‐Guzik (ORCID: https://orcid.org/0000-0002-8277-4434)
- Lisset Noriega (ORCID: https://orcid.org/0000-0002-7783-7920)
- Luis Armando González-Ortiz
- Amilcar Meneses‐Viveros (ORCID: https://orcid.org/0000-0003-1976-6199)
- Gabriela Vidales-Ayala
- Emmanuel Soberanis-Cáceres
Institutions
- University of Toronto (CA)
- Universidad Marista de Mérida (MX)
- Instituto Politécnico Nacional (MX)
- Centro de Investigación y de Estudios Avanzados del Instituto Politécnico Nacional (MX)
Publication Details
- Journal
- Chemical Science
- Published
- 2025-11-13
- DOI
- https://doi.org/10.1039/d5sc05004a
- Citations
- 1
- Primary Topic
- Machine Learning in Materials Science
- Type
- article
- Field-Weighted Citation Impact
- 0.52