Maligram
A maligram is a term used in linguistics and computer science to describe a sequence of words or characters that, while syntactically valid according to a given grammar or set of rules, produces a nonsensical or semantically incoherent meaning. It differs from an anagram, which rearranges letters within a single word, in that it involves multiple words or tokens and relies on preserving syntactic structure while violating semantic expectations. The concept is often used to illustrate the difference between syntax and semantics in language processing and generation systems. Maligrams can highlight the limitations of systems that only process syntactic information without understanding the underlying meaning. They are not necessarily ungrammatical, but are pragmatically or semantically anomalous.