Nitrogen has five valence electrons and in simple amines it is trivalent, with the two remaining electrons forming a lone pair. Through that pair, nitrogen can form an additional bond to hydrogen making it tetravalent and with a positive charge in ammonium salts. Many nitrogen compounds can thus be potentially basic but its degree depends on the configuration: the nitrogen atom in amides is not basic due to delocalization of the lone pair into a double bond and in pyrrole the lone pair is part of an aromatic sextet.
Carbon-nitrogen bond can be analyzed by X-ray photoelectron spectroscopy (XPS). Depending on the bonding states the peak positions differ in N1s XPS spectra.[4][5][6]
^Falzon, Chantal T.; Ryu, Ilhyong; Schiesser, Carl H. (2002). "5-Azahexenoyl radicals cyclize via nucleophilic addition to the acyl carbon rather than 5-exo homolytic addition at the imine". Chemical Communications (20): 2338–9. doi:10.1039/B207729A. PMID12430429.
^F. H. Allen, O. Kennard, D. G. Watson, L. Brammer, A. G. Orpen. Tables of bond Lengths determined by X-Ray and Neutron Diffraction. Part 1. Bond Lengths in Organic Compounds. J. Chem. Soc. Perkin Trans. II1987, S1-S19.
^Wagner, Gerald; Arion, Vladimir B.; Brecker, Lothar; Krantz, Carsten; Mieusset, Jean-Luc; Brinker, Udo H. (2009). "Controllable Selective Functionalization of a Cavitand via Solid State Photolysis of an Encapsulated Phenyl Azide". Org. Lett.11 (14): 3056–3058. doi:10.1021/ol901122h. PMID19537769.