SAS has purchased Teragram, a natural language processing (NLP) software vendor, in a bid to boost its existing technologies for text mining and business intelligence, the company announced Monday.