In the context of computer science, what is a primary function of language models in natural language processing (NLP)?
A) To translate programming languages into machine code
B) To generate and understand human language text
C) To manage and store large datasets efficiently
D) To optimize hardware performance for computational tasks