1. A method to process a document, comprising: partitioning document text and assigning semantic meaning to words, where assigning comprises applying a plurality of regular expressions, rules and a plurality of dictionaries to recognize chemical name fragments; recognizing any substructures present in the chemical name fragments; and determining structural connectivity information of the chemical name fragments and recognized substructures and storing the determined structural connectivity information in a searchable index.