# Designing a Bilingual District-and-Intent Triage Prompt for Regional Community Knowledge Platforms

> Published 2026-12-01 · https://www.promptzone.com/zainab_firdaus_3248c9b801/designing-a-bilingual-district-and-intent-triage-prompt-for-regional-community-knowledge-platforms-3ekg


![Image description](https://promptzone-community.s3.amazonaws.com/uploads/articles/tc5trwynmkg3az3622b5.png)

## Problem and Use Case

Managing knowledge inside a regional, multilingual community platform is fundamentally a classification and routing problem. Unlike single-topic software forums where threads follow predictable technical templates, a broad civic discussion space receives messy, overlapping inputs: a single user post might mix English and Malayalam script, reference a specific town without naming its parent district, ask a practical local question, and touch on public administration all at once.

Consider **KeralaOrbit** as a concrete conceptual use case. As an independent, bilingual English and Malayalam community and discussion platform connecting residents, students, professionals, entrepreneurs, travelers, and Malayalis worldwide, its intended scope spans Kerala's 14 districts and a wide spectrum of everyday life—from education and livelihoods to local recommendations and diaspora concerns. (Note: **KeralaOrbit** is used here strictly as a planning and architectural design case study, without assuming any pre-existing AI pipeline or automated moderation infrastructure.)

At the macro level, a **Kerala community forum** must organize incoming discussions so that a resident in Kannur and a student in Thiruvananthapuram can both find relevant threads without sifting through unrelated noise. When posts arrive without standardized tags, valuable local context gets buried in generic feeds.

The core challenge lies in the diversity of **Kerala questions and answers** that users submit. A simple keyword-matching rule fails quickly because community members rarely write using clean taxonomy labels; they describe real-life situations in conversational English, Malayalam, or code-switched Manglish.

For example, academic and recruitment threads often split into distinct needs. A post asking about exam syllabus changes or rank-list timelines belongs in a **Kerala PSC exam discussion forum** workflow, where accuracy around official notifications matters, rather than being lumped into general career chatter.

Similarly, administrative queries require careful triage. When a user asks how to renew a certificate, navigate an Akshaya Centre visit, or verify welfare eligibility, that submission maps to **Kerala government services help**—a category where an AI triage layer must flag the post so readers are reminded to verify rules against official government portals rather than relying solely on peer comments.

Employment threads present another subtle routing distinction. Broad discussions about IT parks, Gulf returnee transitions, or remote work belong under **Kerala jobs and career discussions**, which require different topical tags and peer expertise than exam-prep threads.

Higher education queries add yet another dimension. When students or parents ask about university allotment rounds, entrance procedures, or scholarship documentation, routing those threads toward **Kerala college admission guidance** ensures they reach peers familiar with academic calendars and institutional rules.

Hyper-local lifestyle posts test a prompt's geographic resolution. A user asking for reliable pediatric clinics, broadband providers, or commute routes in Kakkanad or Fort Kochi is generating **Kochi local community recommendations**, which must be mapped accurately to Ernakulam district even if the user never types the word "Ernakulam."

Seasonal and geographic context also intersect in visitor queries. Posts comparing monsoon road conditions in Wayanad, backwater routes in Alappuzha, or hill-station stays in Idukki fit naturally into a **Kerala travel discussion forum**, where timing and regional geography determine whether an answer is useful.

Commercial and entrepreneurial posts carry their own vocabulary. Questions about MSME registration, local supply chains, or early-stage funding belong in **Kerala business and startup discussions**, separating commercial problem-solving from general consumer advice.

Finally, diaspora threads often bridge two geographies simultaneously. When expatriates ask about property maintenance, eldercare in Kottayam, overseas employment transitions, or returning home permanently, those contributions anchor an **NRI Malayali community forum** workflow that requires preserving both overseas and home-district context.

Solving this multi-dimensional routing problem with a structured large language model (LLM) prompt—rather than rigid regex rules—allows community builders to extract district tags, primary topics, language metadata, and human-review flags in a single deterministic pass.

---

## Reusable AI Prompt

Copy and test the following prompt in your preferred LLM playground or API workflow. Replace the variables inside the `<user_submission>` block with any sample community post.

```text
<role>
You are a bilingual (English and Malayalam) Community Knowledge Triage Analyst for an independent regional discussion platform focused on Kerala, India. Your job is to analyze raw, user-submitted community posts and output a structured JSON classification object to assist human moderators and content organizers. You do not publish replies to users, and you do not represent any government authority.
</role>

<reference_taxonomy>
1. Valid Districts (select 1 primary district, or "Statewide / Unspecified" if no specific district applies, or "Multiple" if two or more are equally central):
   - Thiruvananthapuram, Kollam, Pathanamthitta, Alappuzha, Kottayam, Idukki, Ernakulam, Thrissur, Palakkad, Malappuram, Kozhikode, Wayanad, Kannur, Kasaragod, Statewide / Unspecified, Multiple

2. Primary Topic Categories (select 1 primary_category and up to 2 secondary_categories):
   - Government Services & Public Documentation
   - Education, Admissions & Scholarships
   - Kerala PSC & Competitive Exams
   - Jobs, Careers & Workplace
   - Entrepreneurship, MSMEs & Startups
   - Local Recommendations & Civic Life
   - Travel, Tourism & Culture
   - Housing, Healthcare & Everyday Utilities
   - Agriculture & Environment
   - NRI & Global Malayali Affairs
   - General Community Discussion

3. Information Need Types (select 1):
   - Factual / Procedural Inquiry
   - Local Recommendation Request
   - Experience Sharing / Peer Advice
   - Discussion / Opinion Prompt
   - Unclear / Incomplete Post
</reference_taxonomy>

<instructions>
Analyze the text inside <user_submission> by following these steps strictly:

1. Language & Meaning Preservation:
   - Detect the input language ("English", "Malayalam", "Bilingual / Code-Switched", or "Manglish").
   - Preserve the exact intent of Malayalam words, idioms, and local place names without over-translating or distorting cultural nuances.
   - Write the concise English summary in neutral, objective prose so moderators who read either language can triage quickly.

2. Geographic Resolution:
   - Identify explicit district names or infer the district ONLY when an unambiguous town, city, or landmark is mentioned (e.g., Kochi/Kakkanad -> Ernakulam; Munnar/Thodupuzha -> Idukki; Thalassery -> Kannur).
   - If a place name is ambiguous or missing, do NOT guess—assign "Statewide / Unspecified" and note the ambiguity in `uncertainty_notes`.

3. Accuracy & Anti-Fabrication Safeguards:
   - Treat all user claims, dates, fees, and scheme details inside the post as unverified user statements, never as confirmed facts.
   - NEVER invent government rules, deadlines, eligibility criteria, office addresses, or official URLs.

4. Human Review & Authoritative Source Flagging:
   - Set `requires_human_review` to `true` if ANY of the following apply:
     a) The post asks about government procedures, welfare schemes, legal/tax compliance, immigration, or official deadlines (requires an authoritative-source disclaimer).
     b) The post contains conflicting details, missing critical context, or ambiguous Malayalam/Manglish phrasing.
     c) The post involves medical, financial, or emergency safety decisions.
   - When government or official procedures are involved, set `authoritative_source_needed` to `true` and specify which general domain of official verification applies (e.g., "Official Kerala eDistrict / Revenue Department portal" or "Official Kerala PSC notification") without fabricating specific URLs or rule numbers.

5. Handling Incomplete or Conflicting Input:
   - If the submission is too short, contradictory, or lacks enough detail to classify reliably, set `confidence_level` to "Low", set `information_need` to "Unclear / Incomplete Post", and list specific clarifying questions a human moderator could ask the author.
</instructions>

<output_format>
Return ONLY valid JSON matching this exact schema. Do not include markdown commentary outside the JSON block.

{
  "detected_language": "English | Malayalam | Bilingual / Code-Switched | Manglish",
  "primary_district": "string",
  "secondary_districts": ["string"],
  "inferred_from_locality": "string or null",
  "primary_category": "string",
  "secondary_categories": ["string"],
  "information_need": "string",
  "neutral_summary_en": "string (max 35 words)",
  "requires_human_review": true,
  "review_reasons": ["string"],
  "authoritative_source_needed": true,
  "verification_guidance": "string or null",
  "confidence_level": "High | Medium | Low",
  "uncertainty_notes": "string or null",
  "suggested_clarifying_questions": ["string"]
}
</output_format>

<user_submission>
Title: {{POST_TITLE}}
Body: {{POST_BODY}}
</user_submission>

```

---

## Prompt-Engineering Explanation

This prompt uses several deliberate structural choices to prevent common LLM failure modes in regional community workflows:

* **Role scoping as a non-authoritative triage analyst:** By explicitly stating that the model assists human moderators and never publishes replies or represents a government body, the prompt suppresses the model's tendency to generate helpful-sounding but unverified answers to administrative or legal questions.
* **Closed-set taxonomy constraints:** Providing an explicit list of Kerala's 14 districts alongside standardized topic labels prevents taxonomy drift (such as inventing "Cochin District" instead of mapping Kochi to Ernakulam).
* **Locality-to-district inference with an explicit anti-guessing rule:** Regional posts frequently mention sub-district towns like Kakkanad, Munnar, or Thalassery. Instructing the model to map unambiguous localities while defaulting to `"Statewide / Unspecified"` when uncertain avoids false geographic tagging.
* **Separation of `requires_human_review` and `authoritative_source_needed`:** Not every post needing human review is a government query, and not every government query is ambiguous. Separating these boolean flags allows a community platform to route administrative posts toward standard "verify with official portals" notices while routing vague posts toward moderator clarification.
* **Structured JSON output contract:** Enforcing a strict JSON schema with `confidence_level` and `uncertainty_notes` makes the output immediately usable in downstream database workflows, filtering interfaces, or human moderation queues.

**How to adapt this prompt:** Builders working on other multi-region communities can swap the 14-district list for their own administrative divisions, adjust the language detection labels to match their local linguistic mix, and customize the human-review triggers to fit their domain's risk profile.

---

## Example Input and Output

*Note: The following input is a fictional, illustrative example created solely to demonstrate how the prompt processes bilingual regional text. It does not represent an actual **KeralaOrbit** member post.*

### Hypothetical Input

```text
<user_submission>
Title: അക്ഷയ സെന്റർ വഴി income certificate അപേക്ഷിക്കാൻ എത്ര ദിവസം എടുക്കും?
Body: Hi everyone, I am applying for an undergraduate scholarship and need an income certificate urgently. My permanent house is in Ottapalam, currently studying in Thrissur. Can I apply online via eDistrict or do I have to visit the village office in person? Also heard the validity is only 6 months—is that true?
</user_submission>

```

### Model Output

```json
{
  "detected_language": "Bilingual / Code-Switched",
  "primary_district": "Palakkad",
  "secondary_districts": [
    "Thrissur"
  ],
  "inferred_from_locality": "Ottapalam mapped to Palakkad district",
  "primary_category": "Government Services & Public Documentation",
  "secondary_categories": [
    "Education, Admissions & Scholarships"
  ],
  "information_need": "Factual / Procedural Inquiry",
  "neutral_summary_en": "Student residing in Thrissur with permanent residence in Ottapalam (Palakkad) asks about eDistrict vs. village office procedures, processing time, and validity period for an income certificate required for a scholarship.",
  "requires_human_review": true,
  "review_reasons": [
    "Involves official government certificate issuance procedures and processing timelines.",
    "User asks to verify a specific validity rule (6 months) that must be confirmed against official revenue department guidelines."
  ],
  "authoritative_source_needed": true,
  "verification_guidance": "Direct user to confirm current eDistrict portal submission rules, village office jurisdiction, and certificate validity periods through official Kerala Revenue Department / eDistrict guidelines.",
  "confidence_level": "High",
  "uncertainty_notes": "Jurisdiction depends on whether the applicant's permanent address in Ottapalam governs revenue certificate issuance; human moderator or official portal check recommended.",
  "suggested_clarifying_questions": []
}

```

---

## Limitations and Human Review

Even a carefully constrained prompt has clear boundaries when applied to regional, bilingual community discussions:

* **Malayalam idioms, sarcasm, and regional dialects:** Malayalam vocabulary and phrasing vary noticeably across Malabar, central Kerala, and southern Travancore. Models may misread colloquial humor, phonetic Manglish spellings, or culturally embedded references as literal confusion or policy complaints.
* **Overlapping place names:** Certain town or village names appear in more than one district, or sit right on district borders. Automated locality inference should always be treated as a preliminary suggestion rather than an infallible geographic assignment.
* **Evolving government procedures and deadlines:** Revenue department circulars, eDistrict workflows, scholarship cutoffs, and Kerala PSC notifications change periodically. Because LLMs rely on static training weights and cannot verify live administrative rules on their own, AI-generated triage must never be used to validate fees, eligibility, or deadlines.
* **Human-in-the-loop accountability:** Automated classification works best as an assistive sorting layer—helping moderators prioritize queues, attach standard "check official sources" reminders, and surface unanswered questions—while leaving final editorial decisions and factual verification to informed human reviewers.

---

## Closing Discussion

How would you refine this prompt to handle heavily code-switched Manglish posts without inflating token costs, or what evaluation rubrics would you use to benchmark geographic and topical classification accuracy across all 14 districts? Share your prompt variations and testing approaches below. v