From 7e1ef7667731a208235c959cf16329ade37e6e7b Mon Sep 17 00:00:00 2001 From: SansGuidon Date: Mon, 20 Jan 2025 10:16:24 +0000 Subject: [PATCH] feat(autotag) language related tags --- auto_tag_plugin/auto_tag_plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_tag_plugin/auto_tag_plugin.php b/auto_tag_plugin/auto_tag_plugin.php index 72858d3..e2695f0 100644 --- a/auto_tag_plugin/auto_tag_plugin.php +++ b/auto_tag_plugin/auto_tag_plugin.php @@ -33,7 +33,7 @@ function auto_tag_plugin_init(ConfigManager $conf) 'cloudron' => 'cloudron,hosting', '(comic),-comic-,comics,bandes dessinées' => 'comics,reading-and-literature,culture,humor', 'comparison,comparer, vs ,versus,comparatif,comparaison' => 'comparison', - 'communicate,communication,messaging,messenger,gmail,communiquer,écriture inclusive' => 'communication', + 'communicate,communication,messaging,messenger,gmail,communiquer,écriture inclusive,la langue,académie française,language' => 'communication', 'complex,impossible to solve,complicated,very difficult,complexe,compliqué' => 'complexity,its-complicated', 'computers,personal computer' => 'pc', 'configure,configuration,paramétrer,paramétrage' => 'configuration', @@ -238,7 +238,7 @@ function apply_auto_tags(array $data, ConfigManager $conf): array $tagScores = calculate_tags($keywordsToTags, $searchContents); // Append tag stats to the description - //$data = append_tag_stats($data, $tagScores); + // $data = append_tag_stats($data, $tagScores); // UNCOMMENT WHEN DEBUGGING AUTOMATED TAGS // Filter and limit tags $tagsToAdd = filter_and_limit_tags($tagScores);