The HTA algorithm identifies the head and tail positions of the repeat units of a polymer by analyzing the nucleophilicity of its functional groups, see the flow chart in figure . In short, the algorithm identifies functional groups within the monomer SMILES and rank-orders their reactivity based on quantum chemical calculations. On the basis of this information, the algorithm then assigns the most likely polymerization mechanism, as well as the positions of head and tail atoms.