Using the API to convert a name to a structure:
String input = "2,3-dimethylbenzoic acid";
Molecule m = MolImporter.importMol(input, "name");
The exact behavior of Name to Structure can be configured by including name format options after the name
parameter and a colon, for instance name:ocr
.
It is possible to register your own plugins to extend Name to Structure, for instance to lookup compound IDs in a database. This is documented in the NameConverters class.
See the Name to Structure User Guide for more information.