https://doi.org/10.1351/goldbook.M03968
In physical organic chemistry moiety is generally used to signify part of a molecule, e.g. in an ester R1COOR2 the alcohol moiety is R2O. The term should not be used for a small fragment of a molecule.