"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.
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.
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.
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.