ChatScript
ChatScript is a combination Natural Language engine and dialog management system designed initially for creating chatbots, but is currently also used for various forms of NL processing. It is written in C++. The engine is an open source project at SourceForge. and GitHub. ChatScript was written by Bruce Wilcox and originally released in 2011, after Suzette (written in ChatScript) won the 2010 Loebner Prize, fooling one of four human judges.
ChatScript is a combination Natural Language engine and dialog management system designed initially for creating chatbots, but is currently also used for various forms of NL processing. It is written in C++. The engine is an open source project at SourceForge. and GitHub. ChatScript was written by Bruce Wilcox and originally released in 2011, after Suzette (written in ChatScript) won the 2010 Loebner Prize, fooling one of four human judges. Topic: ~food( ~fruit fruit food eat) t: What is your favorite food? a: (~fruit) I like fruit also. a: (~metal) I prefer listening to heavy metal music rather than eating it. ?: WHATMUSIC ( >) I prefer rock music. s: ( I * ~like * _~music_types) ^if (_0 == country) {I don't like country.} else {So do I.} Words starting with ~ are concept sets. For example, ~fruit is the list of all known fruits. The simple pattern (~fruit) reacts if any fruit is mentioned immediately after the chatbot asks for favorite food. The slightly more complex pattern for the rule labelled WHATMUSIC requires all the words what, music, you and any word or phrase meaning to like, but they may occur in any order. Responders come in three types. ?: rules react to user questions. s: rules react to user statements. u: rules react to either. ChatScript code supports standard if-else, loops, user-defined functions and calls, and variable assignment and access. $_local = 1 is a local transient variable being assigned a 1 $$global1.value = “hi” is a transient global variable which is a JSON object $global2 += 20 is a permanent global variable table: ~inventors(^who ^what) createfact(^who invent ^what) DATA: "Johannes Gutenberg" "printing press" "Albert Einstein" ["Theory of Relativity" photon "Theory of General Relativity"] The above table links people to what they invented (1 per line) with Einstein getting a list of things he did.
References
No reference rows published for this article.
Cite this article
MLA
"ChatScript." encyclopegia.org, 2026, https://encyclopegia.org/wiki/chatscript. Accessed 24 November 2026.
Chicago
"ChatScript." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/chatscript.
APA
encyclopegia.org. (2026). ChatScript. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/chatscript
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2011 | Wikipedia |