[01] Overview
Pangasinan (Salitan Pangasinan) is the language of the province of Pangasinan in northern Luzon. General-purpose chat models handle it poorly: they drift into Tagalog or English, borrow Tagalog roots and affixes, and make up words that sound plausible but aren't real Pangasinan.
Tawir is our thesis project on this problem. The app is a fork of an earlier open-source TAWIR client, connected to our own fine-tuned model.
A conversational agent that replies in fluent Pangasinan whatever language you write in, and can say its answers out loud.
[02] How It Works
The model is Llama 3.1 8B, fine-tuned for Pangasinan and served as a quantized GGUF build. Most of the behavior that keeps it on track comes from a detailed system prompt and conservative decoding settings.
| Part | What it does |
|---|---|
| System prompt | Keeps every reply in Pangasinan, rules out Tagalog and Ilocano roots and affixes, and tells the model to say when it is unsure of a word instead of inventing one. |
| Translations | Answers directly in the form Say patalos to et "…" without echoing the original words. |
| Conversation window | Sends the system prompt with the most recent turns, and adds a short note in Pangasinan when older turns were dropped. |
| Agent endpoint | Streams the reply as it is generated and can run a web search, with the current date and time in Lingayen added to the request. |
| Voice | Reads replies aloud with Meta's MMS text-to-speech voice for Pangasinan, falling back to the device's own speech engine. |
[03] Implementation
The client is a Flutter app, so the same code builds for the web, Android, Windows, macOS, Linux, and iOS. It talks to the server through OpenAI-style endpoints for chat and the agent, plus a separate endpoint for speech.
The beta build adds a developer panel that shows the target model, sampling settings, streaming state, and voice setting for each request.
[04] Deployment & Console
The app runs at ravenneil.com/tawir, with a beta build at /tawir/beta/. The model and the voice run on a cloud GPU server.
Service status and maintenance notices come from the Raven Neil Console.