Artificial intelligence (computer science) has a lot of borrowing from linguistics, and the unpleasant effect happens to be sometimes that the borrowing becomes mistaken for the real thing. Linguistics is about natural language and computers do not have cognizance, therefore,
– computers do not have real syntax; all they can have is parsing routines;
– computers do not have real semantics; all they can have is designate sets;
– and computers do not have phonology; all they can have is programmed spectra of sound.
Human grammar has syntax, semantics, and phonology.
Syntax is mostly the way we put words together. We put words together in relation to the way we view time.
Semantics tells about word sense. Collocations emerge in association between syntax and semantics.
Phonology tells about the sound of language. Speech sounds matter when we phrase, not only for poetry.
The three, syntax, semantics, and phonology, are related. The relation comes to exist in human cognizance, as grammar.