Search by

le-pave / dictionnaire-thematiques

le-pave

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

Issues

pkg:composer/le-pave/dictionnaire-thematiques

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

v0.1.0 2026-11-28 23:23 UTC

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

SlugLabel
extreme-droiteExtrême droite
racismeRacisme
discriminationsDiscriminations
ecologieÉcologie
justice-socialeJustice sociale
libertes-civilesLibertés civiles
femmes-droitsFemmes & droits
lgbtqiLGBTQIA+
police-justicePolice & justice
cultureCulture
religionsReligions
presidentielle-2027Pré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 topics52.1 %
Precision / recall / F1 (all topics)0.715 / 0.726 / 0.720
TopicArticlesPrecisionRecallF1
Écologie7830.8360.8700.852
Justice sociale6830.7310.7510.741
Libertés civiles2660.4680.7180.567
Femmes & droits1470.7620.6730.715
Extrême droite1390.6830.6830.683
Police & justice1250.6670.6240.645
Racisme1150.7600.4960.600
Discriminations830.8120.1570.263
Présidentielle 2027680.5950.6910.639
LGBTQIA+480.8060.5210.633
Culture390.5810.4620.514
Religions100.7500.3000.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.