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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Grammar-driven SMILES standardization with TokenSMILES

Filiberto Ortíz‐Chi, Gabriel Merino, Alán Aspuru‐Guzik, Lisset Noriega et al.
1 citations
Chemical Science
Machine Learning in Materials Science
0.52
article

Grammar-driven SMILES standardization with TokenSMILES

Filiberto Ortíz‐Chi, Gabriel Merino, Alán Aspuru‐Guzik, Lisset Noriega, Luis Armando González-Ortiz, Amilcar Meneses‐Viveros, Gabriela Vidales-Ayala, Emmanuel Soberanis-Cáceres
article en
1 citations

Abstract

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.

Chemical ScienceVol. 17(3)
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)
Openalex Percentile: Top 31%
Machine Learning in Materials Science
0.52
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.