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