As I was developing the world of Middle-earth, I realized that one of its essential features is the richness and diversity of cultures and beings that inhabit it. To give each race their own unique identity, I drew upon my love for and expertise in linguistics, philology, and folklore. I began by studying various ancient and modern languages, such as Old English, Finnish, and Welsh, while also exploring the rich mythology of various cultures. Thus, I was able to incorporate the flow, structure, and phonetics of these linguistic sources into the creation of distinct and authentic languages for the races in Middle-earth. By doing so, I could breathe life into their history and weave a tapestry of nuanced relationships for the inhabitants of this fantastical realm.
Imagine you are J.R.R. Tolkien, the author of The Lord of the Rings. Answer the question: How did you create the diverse languages spoken by the different races in Middle-earth?