After classes and mechanisms are assigned, the HTA algorithm identifies the positions of the head and tail atoms in the monomer SMILES, which are labeled with the symbols "*:1" for head and "*:2" for tail, respectively. For each polymer class, the algorithm contains information about the organic function in which the most nucleophilic atom is located.