le-pave / dictionnaire-thematiques
Weighted dictionary of the topics of Le Pavé, for press-topics: the terms that speak for or against each topic of the independent French-language press.
Package info
codeberg.org/le-pave/dictionnaire-thematiques
pkg:composer/le-pave/dictionnaire-thematiques
Requires
None
Requires (Dev)
None
Suggests
- le-pave/press-topics: Classifies articles with this dictionary.
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-29 20:49:19 UTC
README
The weighted dictionary that gives their topics to the contents of Le Pavé, an aggregator of the independent French-language press. It is read by press-topics: no AI service, no third party, every result explained by the terms that weighed.
Table of Contents
Contents
dictionary.json: for each topic, its bias, its threshold and its terms with their weight, positive when the term speaks for the topic, negative when it speaks against it. Terms are written like the normalized text of press-topics: lowercase, without accents, singular.topics.json: the label and the definition of each topic.
composer require le-pave/press-topics le-pave/dictionnaire-thematiques
$classifier = new PressTopics\Classifier(
PressTopics\Dictionary::load('vendor/le-pave/dictionnaire-thematiques/dictionary.json')
);
Topics
| Slug | Label |
|---|---|
extreme-droite | Extrême droite |
racisme | Racisme |
discriminations | Discriminations |
ecologie | Écologie |
justice-sociale | Justice sociale |
libertes-civiles | Libertés civiles |
femmes-droits | Femmes & droits |
lgbtqi | LGBTQIA+ |
police-justice | Police & justice |
culture | Culture |
religions | Religions |
presidentielle-2027 | Présidentielle 2027 |
Their definitions are in topics.json.
Results
First version (28 November 2026), learnt from 12,643 articles of Le Pavé whose topics a language model had given with confidence (11,379 to learn the weights, 1,264 to set the thresholds), then compared on 2,000 other articles it never saw:
| At least one topic in common (or none on both sides) | 82.6 % |
| Exactly the same topics | 52.1 % |
| Precision / recall / F1 (all topics) | 0.715 / 0.726 / 0.720 |
| Topic | Articles | Precision | Recall | F1 |
|---|---|---|---|---|
| Écologie | 783 | 0.836 | 0.870 | 0.852 |
| Justice sociale | 683 | 0.731 | 0.751 | 0.741 |
| Libertés civiles | 266 | 0.468 | 0.718 | 0.567 |
| Femmes & droits | 147 | 0.762 | 0.673 | 0.715 |
| Extrême droite | 139 | 0.683 | 0.683 | 0.683 |
| Police & justice | 125 | 0.667 | 0.624 | 0.645 |
| Racisme | 115 | 0.760 | 0.496 | 0.600 |
| Discriminations | 83 | 0.812 | 0.157 | 0.263 |
| Présidentielle 2027 | 68 | 0.595 | 0.691 | 0.639 |
| LGBTQIA+ | 48 | 0.806 | 0.521 | 0.633 |
| Culture | 39 | 0.581 | 0.462 | 0.514 |
| Religions | 10 | 0.750 | 0.300 | 0.429 |
These figures measure the agreement with the language model, not the truth: many disagreements are debatable, sometimes in favour of the dictionary. The rare topics (Discriminations, Culture, Religions) have too few examples: their terms still hold names and need a review by hand.
The articles themselves are not published: their titles and summaries belong to the media.
Contributing
The dictionary is meant to be reviewed and completed by people, the editorial teams of the media first: remove a term that has nothing to do with a topic, add one that is missing, change a weight. Open an issue or a pull request, saying which articles the change fixes.
Licence
CC BY-SA 4.0: share and adapt it, crediting Le Pavé, under the same licence.