We describe a general algorithm for accurate residue type assignments of multidimensional NMR spectra of biomolecules. It exploits identical chemical shifts of the same nuclear site across spectra, to match resonances to known residue type assignments. Thus, congested spectra can be automatically assigned, so long as resonances positions can be resolved. The algorithm is coded into program ARTIST in Python and tested by 3D ncacx and ncocx spectra of the tubular assembly formed by 237-residue Rous sarcoma virus capsid protein. The script can easily be modified to assist residue type assignments of other multidimensional NMR spectra to alleviate the challenge from spectral congestion, and to accelerate the workflow.