1. Organic compounds containing the group –CO.NH2 (the amide group). Compounds containing this group are primary amides. Secondary and tertiary amides can also exist, in which the hydrogen atoms on the nitrogen are replaced by one or two other organic groups respectively. Simple examples of primary amides are ethanamide, CH3CONH2, and propanamide, C2H5CONH2. They are made by heating the ammonium salt of the corresponding carboxylic acid. Amides can also be made by reaction of ammonia (or an amine) with an acyl halide. See also Hofmann’s reaction.
2. Inorganic compounds containing the ion NH2-, e.g. KNH2 and Cd(NH2)2. They are formed by the reaction of ammonia with electropositive metals.
https://www.acdlabs.com/iupac/nomenclature/93/r93_543.htm Information about IUPAC nomenclature