With today's hype about large language models, I was wondering if there is any research about mathematical structures for describing sets of words or sentences from a "semantics perspective".
Some web searches led to nothing – probably because I use wrong keywords. On StackExchange I found this question and this question of interest, but one doesn't have an answer, the other takes more of a formal-logic perspective (well-formed formulae), and both are somewhat old.