There is a recent publication by Peter Ertl (Journal of Cheminformatics,An algorithm to identify functional groups in organic molecules) that describes a rather simple algorithm to identify functional groups. That looks like a nice addition to SH, maybe as a calc plugin that returns a fingerprint.