Meaning of the word "compos mentis" in English

What does "compos mentis" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

compos mentis

US /ˌkɑːm.pəs ˈmen.t̬əs/
UK /ˌkɒm.pɒs ˈmen.tɪs/

Adjective

(especially in legal contexts) sane; in possession of one's faculties

Example:
The judge ruled that the defendant was not compos mentis at the time of the crime.
After the accident, he was barely compos mentis for several days.