Web DevelopmentDecember 2025
Government Service Query Classifier
An Automata Theory assignment applied to a real problem: a chatbot that uses a Deterministic Finite Automaton to route citizen questions to government services such as NIC, passport and driving license, in English, Sinhala and Tamil.
PythonFlaskAutomata TheoryJavaScript

About the project
Government Service Query Classifier is an automaton-based chatbot built for an Automata Theory assignment. A Deterministic Finite Automaton implemented in pure Python moves through keyword-based state transitions to classify citizen queries into 12 Sri Lankan government services, or reject them. A Flask web interface shows the classification and the state transition, in English, Sinhala and Tamil.
Key features
- DFA ClassifierKeyword-based state transitions implemented in pure Python
- Twelve ServicesNIC, passport, certificates, driving license, tax, pension, welfare, education and health
- Three LanguagesEnglish, Sinhala and Tamil
- Chat InterfaceQuick actions and a view of the DFA state transition