HARCHAtelier
Skip to main content
HARCHAtelier
Sign inPricing
Request a demo
← Back to blog
Methodology

Trilingual Sentiment Analysis: The Method in the Open

432 French words, 218 Arabic, 606 English, dedicated Darija rules — our sentiment analysis rests on documented lexicons, executed at collection time, never merged into a single score before verification. Here are the machine's parts, openly — and its limits.

KA
Karim Alaoui
Head of AI Engines, Harch Atelier
September 29, 2026·11 min read

"Sentiment is at 62% this month." Most monitoring tools can produce that sentence. The question that decides everything is: 62% of what, measured how, on which language, under which rules? A sentiment score without an exposed method is not a measurement — it is decorated arithmetic. This article opens the parts of our own machine: documented trilingual lexicons, dedicated Darija rules, execution at collection time, and one golden rule — never merge the languages before checking they tell the same story.

The lexicon method, and why we chose it

Our sentiment analysis rests on lexicons — lists of polarity-bearing words — combined with processing rules. Concretely: 432 French words, 218 Arabic words, 606 English words, and a dedicated ruleset for Moroccan Darija, the spoken language in which a massive share of the country's online conversations are written. Every collected text is scored at scrape time: the pipeline grades the text, not a base recalculated after the fact. Why lexicons rather than a large language model alone? Three reasons: determinability — the same text always yields the same score; auditability — every score decomposes into the words that produced it; and cost — analyzing thousands of texts a day at this precision level remains economical. Language models do have a role in our pipeline, but downstream: labelling, summarizing, classifying — not replacing the measurement.

ComponentDocumented sizeRole
French lexicon432 wordsPolarity of French-language texts — press, networks, comments
Arabic lexicon218 wordsPolarity of Arabic-language texts — press and comments
English lexicon606 wordsPolarity of English-language texts — pan-African and international press
Darija rulesDedicated setExpressions, negations and Latin-script spellings of Moroccan dialectal Arabic
The documented components of sentiment analysis — production-system figures.

The Darija problem, taken seriously

Darija — Moroccan dialectal Arabic — is the ground where generic tools fail most visibly. It is written in Arabic or Latin script, borrows from French, Berber and classical Arabic, and its polarity markers cannot be deduced from any of the three standard registers. A Darija negation can look like an affirmation; an affectionate insult can look like an attack; irony is a central figure. Our dedicated rules handle these cases: Latin spellings, specific negation markers, fixed expressions. Darija coverage is not perfect — nobody can honestly claim that — but it is real, documented, and above all separated: Darija sentiment is measured in its own compartment, never diluted into a global score.

→
The golden rule of three languages
Arabic, French, English: three separate measurements, three trends, one crossed reading. If Arabic sentiment dives while French holds, your crisis is social before it is mediatic — and vice versa. Merging languages before that check masks the compartment that is burning.

How an honest score reads

A sentiment score only means something relative to three things. Volume first: 80% positive on twelve mentions does not say the same thing as 54% on nine hundred. Source next: the sentiment of an Arabic-language outlet's reader comments and that of the French-language business press are two different objects — the first is a social thermometer, the second an institutional barometer. Trajectory last: a stable score at a mediocre level beats a brilliant score in free fall — trend is the information, level is just the set dressing. Our dashboards therefore systematically display all three: level, volume, trajectory, per language.

Illustrative example — three languages, three trajectories: the social crisis a global score would have masked
016314762W1W2W3W4W5W6W7
Sentiment AR
Sentiment FR
Sentiment EN

Reading this example illustrates the central point: the global score — the average of the three curves — would have stayed presentable until week 5. The Arabic compartment collapses from week 3. That is exactly the kind of divergence that decides an early alert — and that a premature language merge erases from the dashboard.

The limits, stated plainly

Every sentiment method has limits, and hiding them would be worse than having them. Ours are of three kinds. Irony: an ironic text can produce a positive score — lexicons measure words, not intentions; the Darija rules catch part of it, not all. Mixed sentiment: a text praising a product while attacking the company receives one grade although it contains two judgements; that is the price of scale. Corpus dependence: a lexicon is alive — language evolves, new polarity words appear; ours is maintained, but no lexicon is ever finished. These limits do not disqualify the measurement — they frame its use: sentiment is a detection and trend instrument, not a verdict of truth.

“A sentiment score is not an opinion about reality — it is a regular measurement of a corpus. That difference, owned in public, is what separates an instrument from an oracle.”
— Karim Alaoui, Harch Atelier

What it changes for the team

For a communications team, the practical consequence is a change of question. The wrong question: "what is our score?". The right one: "which language is deviating, on what volume, since when, and which articles carry the deviation?". The first produces a number for a report; the second produces a decision — call customer service, prepare a statement, open a file. That is the whole difference between a decorative dashboard and a steering instrument, and it is decided at the choice of method.

Sentiment measurement is the wobbliest brick of reputation monitoring — and the most central. We chose to build it on exposed principles: documented lexicons, rules for the country's real language, per-language compartments, and stated limits. That exposure is what enables control — and control is what builds trust.

Tags
#sentiment analysis#NLP#lexicon#Darija#Arabic#French#methodology#trilingual
KA
Written by

Karim Alaoui

Head of AI Engines, Harch Atelier

Karim leads Harch Atelier's AI-engine visibility practice. He designs and runs the quarterly prompt batteries that measure how generative engines represent Moroccan and African companies.

Get your reputation audit →

A board-ready audit of how your company is perceived across 30+ media sources, 8 AI engines and the social conversation — in Darija, French and English. 5 minutes to request. 7 days to deliver.

Request my free audit →
Related articles

Keep reading.

Methodology13 min read

Sentiment Analysis in Arabic: Why Most Tools Fail on Darija

A technical deep dive on Arabic NLP, code-switching between Darija, French and MSA, and the trilingual approach HarchIQ uses to reach 88% accuracy on Moroccan conversation.

Read →
Methodology11 min read

The Harch 100 Methodology: How We Rank Morocco's Top Companies

The scoring formula, the pillar extraction, the data sources and the expert review — with a worked sample scoring for Bank of Africa at 72/100.

Read →
Methodology8 min read

The Moroccan Media Landscape: 20+ Sources to Monitor

Hespress dominates online audience, TelQuel and Medias24 structure the French-language debate, Le360 and H24Info set the pace of the flow. An operational map of the sources a reputation-intelligence platform must cover in Morocco.

Read →
Checking…
Initializing…
HARCH|Atelier

AI Reputation Intelligence — Africa & the French-speaking world.

atelier@harchcorp.com·+212 684 440 682
→ harchcorp.com
Navigation
ProductsSolutionsDecision AugmentationPricingRequest demoAbout
Products
Reputation Intelligence PlatformAPI & MCP IntegrationsInsight ReportsAdvanced DashboardsNewsletters & BriefingsHarch MonitorHarch SignalHarch BenchmarkHarch Briefing
Tools
★ Flagship Report 2026Harch 100 RankingRisk TrackerConsoleReport TemplatesInstitutional Audit
Resources
All resourcesFlagship Report 20262026 Media ReportCase studiesMethodologyFAQ
Company
About usCareersPartnersContactTrust CenterResilience MatrixMaster Operating PlanLegal
8 francophone markets covered
FR
France
Paris · Lyon · Marseille
MA
Morocco
Details shared during the demo
BE
Belgium
Brussels · Antwerp
CH
Switzerland
Geneva · Lausanne · Zurich
QC
Quebec
Montreal · Quebec City
TN
Tunisia
Tunis · Sfax
LB
Lebanon
Beirut
SN
Senegal
Dakar
Building in Public, since 2026 · Casablanca, Morocco
Harch Atelier is a Harch Corp venture · Bank transfer