Carbylamine reaction:
The carbylamine reaction, also known as Hofmann's isocyanide test is a chemical test for the detection of primary amines. In this reaction, the analyte is heated with alcoholic potassium hydroxide and chloroform. If a primary amine is present, the isocyanide (carbylamine) is formed which are foul smelling substances.
Ph−NH2+CHCl3+alc.KOH→ph−N≡C+KCl+H2O