Naming comes down to spotting the highest-priority group and giving it the suffix. Everything else in the molecule becomes a prefix.

Table 1. Functional groups in organic chemistry, with IUPAC naming
Functional groupStructureIUPAC suffixPrefixExample
AlkaneR–H-anealkyl-Ethane
AlkeneC=C-enealkenyl-Ethene
AlkyneC≡C-ynealkynyl-Ethyne
AreneAr–H-benzenephenyl- / aryl-Benzene
HaloalkaneR–Xhalo-Chloroethane
AlcoholR–OH-olhydroxy-Ethanol
EtherR–O–R′alkoxy-Diethyl ether
ThiolR–SH-thiolsulfanyl-Ethanethiol
AmineR–NH2-amineamino-Methylamine
AldehydeR–CHO-aloxo- / formyl-Ethanal
KetoneR–CO–R′-oneoxo-Propanone
Carboxylic acidR–COOH-oic acidcarboxy-Ethanoic acid
EsterR–COO–R′-oatealkoxycarbonyl-Ethyl ethanoate
AmideR–CONH2-amidecarbamoyl-Ethanamide
Acyl halideR–COX-oyl halidehalocarbonyl-Ethanoyl chloride
AnhydrideRCO–O–COR′-oic anhydrideEthanoic anhydride
NitrileR–C≡N-nitrilecyano-Ethanenitrile
NitroR–NO2nitro-Nitromethane

R and R′ stand for any carbon chain; X is a halogen; Ar is an aromatic ring. The suffix is used when the group is the highest-priority one in the molecule, the prefix when it is not.