Aristotle’s work on logic led him to study the structure of language. He distinguished between the knowledge of the meanings of words, and the knowledge of judgements made with those words. He came up with ten different general items in speech – the categories. These were what words meant on their own.
Linguistics starts here and also the Byzantine complexities of modern Linguistics Philosophy.