Count the organic groups directly attached to nitrogen. One, two or three groups give primary, secondary or tertiary amines. Aniline is an aromatic primary amine because its amino group is directly attached to a benzene ring.
Amine nitrogen accepts a proton using its lone pair. Alkyl groups donate electron density, whereas delocalisation into the ring makes aniline’s lone pair less available. Compare aqueous bases using both the electronic effect and hydration of the conjugate acid.
Reducing a nitrile keeps the nitrile carbon in the primary amine. Hofmann degradation of a primary amide gives a primary amine with one fewer carbon. Gabriel synthesis gives primary alkylamines. The carbylamine test identifies primary amines, and the Hinsberg test uses different sulfonamide behaviour to distinguish amine classes.