feat(autotag) rules and tags

This commit is contained in:
SansGuidon 2025-01-26 09:09:43 +00:00
parent 23834a9fe4
commit 4bafd7784f

View File

@ -6,16 +6,16 @@ function auto_tag_plugin_init(ConfigManager $conf)
{ {
// Configure keywords and tags based on provided rules // Configure keywords and tags based on provided rules
$conf->setEmpty('plugins.AUTO_TAG_KEYWORDS', [ $conf->setEmpty('plugins.AUTO_TAG_KEYWORDS', [
'accessibility,accessibilité,web development,web design,html,css' => 'web', 'accessibility,accessibilité,web development,web design,html,css,websites' => 'web',
'accounting,comptabilité' => 'accounting', 'accounting,comptabilité' => 'accounting',
'addict,addiction,drugs,drogues,cigarettes,bonbons,dopamine,sucre,nicotine,hooked' => 'addiction', 'addict,addiction,addicted,drugs,drogues,cigarettes,bonbons,dopamine,sucre,nicotine,hooked' => 'addiction',
'adhd,tdah' => 'adhd', 'adhd,tdah' => 'adhd',
'alternative,alternatives,compatible,compatibles,migrated,migration' => 'alternatives', 'alternative,alternatives,compatible,compatibles,migrated,migration' => 'alternatives',
'ads,advertisements,publicités,spam' => 'ads', 'ads,advertisements,publicités,spam' => 'ads',
'anxiété,anxieux,anxieuse,anxiété,burnout,méditation,cardio,santé,health,healthy' => 'health-and-wellness', 'anxiété,anxieux,anxieuse,anxiété,burnout,méditation,cardio,santé,health,healthy' => 'health-and-wellness',
'architecture,architectures' => 'architecture', 'architecture,architectures' => 'architecture',
'archive,archiving,archives,archivage' => 'archiving,archives', 'archive,archiving,archives,archivage' => 'archiving,archives',
'art,arts' => 'culture', 'art,arts,folklore' => 'culture',
'ask hn,news.ycombinator.com/item,reddit.com/r/' => 'debate', 'ask hn,news.ycombinator.com/item,reddit.com/r/' => 'debate',
'autism,autisme,autist,autiste' => 'autism', 'autism,autisme,autist,autiste' => 'autism',
'belgian,belgium,belge,belgique' => 'belgium', 'belgian,belgium,belge,belgique' => 'belgium',
@ -40,7 +40,7 @@ function auto_tag_plugin_init(ConfigManager $conf)
'database,databases,RDS,base de données' => 'databases', 'database,databases,RDS,base de données' => 'databases',
'data collection,collecte de données' => 'data-collection', 'data collection,collecte de données' => 'data-collection',
'data transfer,transfert de données' => 'data-portability', 'data transfer,transfert de données' => 'data-portability',
'debug,troubleshoot,diagnose,résoudre,diagnostiquer,troubleshooting,find a solution' => 'problem-solving,guides-and-tips,debugging', 'debug,troubleshoot,diagnose,résoudre,diagnostiquer,troubleshooting,find a solution,fix bugs' => 'problem-solving,guides-and-tips,debugging',
'design,designs' => 'design', 'design,designs' => 'design',
'development workflow,devex,flux de développement' => 'devex', 'development workflow,devex,flux de développement' => 'devex',
'disk,disque,disques' => 'storage', 'disk,disque,disques' => 'storage',
@ -61,13 +61,13 @@ function auto_tag_plugin_init(ConfigManager $conf)
'logiciel libre,free software,logiciel gratuit,free to use' => 'free-software', 'logiciel libre,free software,logiciel gratuit,free to use' => 'free-software',
'from home,remote work,work remote,travail à distance,télétravail' => 'remote-work', 'from home,remote work,work remote,travail à distance,télétravail' => 'remote-work',
'frustrated,frustration,am pissed,I hate' => 'rant', 'frustrated,frustration,am pissed,I hate' => 'rant',
'big-tech,gafam,degoogling,google,degoogle,grandes entreprises technologiques' => 'big-tech', 'big-tech,gafam,degoogling,google,degoogle,grandes entreprises technologiques,meta quest,meta ai' => 'big-tech',
'game,jeu vidéo,game dev,jeux,jeux vidéo,games,gameplay' => 'games,geek,culture', 'game,jeu vidéo,game dev,jeux,jeux vidéo,games,gameplay' => 'games,geek,culture',
'gamedev,building game,développement de jeux' => 'gamedev,games,geek,culture', 'gamedev,building game,développement de jeux' => 'gamedev,games,geek,culture',
'gratuit,free' => 'free', 'gratuit,free' => 'free',
'gitops,gitlab,github actions,devops,SRE,ci/cd,platform-engineering,ci pipeline,application deployment,dagger,renovatebot,dependabot,continuous integration,site reliability eng' => 'devops', 'gitops,gitlab,github actions,devops,SRE,ci/cd,platform-engineering,ci pipeline,application deployment,dagger,renovatebot,dependabot,continuous integration,site reliability eng' => 'devops',
'git,gitlab,jujutsu,pijul,mercurial,svn,version control,contrôle de version' => 'version-control', 'git,gitlab,jujutsu,pijul,mercurial,svn,version control,contrôle de version' => 'version-control',
'gpt,chatgpt,llm,llms,artificial intelligence,intelligence artificielle,IA,l\'ia,ai,ai model,an ai' => 'ai', 'gpt,chatgpt,llm,llms,artificial intelligence,intelligence artificielle,IA,l\'ia,ai,ai model,an ai,metal ai,auto-coder,autonomous AI' => 'ai',
'hacking,piratage' => 'hacking', 'hacking,piratage' => 'hacking',
'nutrition,food,alimentation,nourriture,recette,recette de cuisine,recettes de cuisine,ingrédients,cette recette,beurre,cuisine' => 'food', 'nutrition,food,alimentation,nourriture,recette,recette de cuisine,recettes de cuisine,ingrédients,cette recette,beurre,cuisine' => 'food',
'history,histoire,documentaire,documentary' => 'history', 'history,histoire,documentaire,documentary' => 'history',
@ -102,41 +102,41 @@ function auto_tag_plugin_init(ConfigManager $conf)
'programming languages,langages de programmation' => 'code,computer-languages', 'programming languages,langages de programmation' => 'code,computer-languages',
'publishing,publier,publication' => 'publishing', 'publishing,publier,publication' => 'publishing',
'quality,qualité' => 'quality', 'quality,qualité' => 'quality',
'recommandations,recommendation,conseils' => 'recommandations,recommendations', 'recommandations,recommendation,conseils' => 'recommendations',
'recycling,sustainable,green web,climate,recyclage,web écologique,climat,ai emissions,water use,emissions produced,amount of co2,global co2,co2 emissions,car bloat,environnement,environment,environmental,environmentally,plasic waste' => 'ecology', 'recycling,sustainable,green web,climate,recyclage,web écologique,climat,ai emissions,water use,emissions produced,amount of co2,global co2,co2 emissions,car bloat,environnement,environment,environmental,environmentally,plasic waste' => 'ecology',
'relationship,relationships,de rencontre' => 'relationships', 'relationship,relationships,de rencontre,meaningful connections' => 'relationships',
'religion,chretiens,bible,coran,islam,musulmans,croyants,athée,la foi,église' => 'philosophy', 'religion,chretiens,bible,coran,islam,musulmans,croyants,athée,la foi,église' => 'philosophy',
'reviews,critique,avis' => 'reviews', 'reviews,critique,avis' => 'reviews',
'rss,rss feed,miniflux,web reader,lecteur web' => 'content-aggregation,content-curation', 'rss,rss feed,miniflux,web reader,lecteur web' => 'content-aggregation,content-curation',
'ruby,rails app,applications ruby' => 'ruby,software-development,code', 'ruby,rails app,applications ruby' => 'ruby,software-development,code',
'science,sciences' => 'science', 'science,sciences,scientifique,scientist' => 'science',
'scripting,jq,curl,wget,script,bash,terminal,bash script,script python,python script,lua,script shell,script bash,shell script' => 'scripting', 'scripting,jq,curl,wget,script,bash,terminal,bash script,#!/bin/bash,script python,python script,lua,script shell,script bash,shell script' => 'scripting',
'search engine,moteur de recherche' => 'search-engines', 'search engine,moteur de recherche' => 'search-engines',
'security,permission,sécurité,anti vol,anti-vol,secure,data privacy,privacy,private,degoogl,gdpr,data protection,online tracking,user profiling,anonymo,anonymi,surveillance,malware,spyware,decentrali,secrets,privacy matters,vpn,passkey,protéger,password manager' => 'privacy-and-security', 'security,permission,sécurité,anti vol,anti-vol,secure,data privacy,privacy,private,degoogl,gdpr,data protection,online tracking,user profiling,anonymo,anonymi,surveillance,malware,spyware,decentrali,secrets,privacy matters,vpn,passkey,protéger,password manager,vie privée' => 'privacy-and-security',
'simplicity,minimal,declutter,stopped using,simple,simplification,simplifier,reduction in,no longer needed,minimalisme,simplicité,réduction' => 'minimalism', 'simplicity,minimal,declutter,stopped using,simple,simplification,simplifier,reduction in,no longer needed,minimalisme,simplicité,réduction' => 'minimalism',
'small web,indie web,indieweb,petit web' => 'small-web', 'small web,indie web,indieweb,petit web' => 'small-web',
'smartphone,android,mobile,phone,téléphone,sms' => 'mobile', 'smartphone,android,mobile,phone,téléphone,sms' => 'mobile',
'snippet,extrait de code' => 'code', 'snippet,extrait de code' => 'code',
'static site,static-site,site statique' => 'static-site', 'static site,static-site,site statique' => 'static-site',
'social media,réseau social,fediverse,fédiverse,réseaux sociaux,social networks,social network' => 'social-media', 'social media,réseau social,fediverse,fédiverse,réseaux sociaux,social networks,social network,meta quest' => 'social-media',
'society,societies' => 'society', 'society,societies' => 'society',
'teamwork,collaborat,équipe,cooperat,coordinat,travail équipe' => 'collaboration', 'teamwork,collaborat,équipe,cooperat,coordinat,travail équipe' => 'collaboration',
'technology,technologie' => 'technology', 'technology,technologie' => 'technology',
'template,modèle' => 'template', 'template,modèle' => 'template',
'terminal,tools-and-resources,terminaltrove' => 'terminal,tools-and-resources', 'terminal,terminaltrove' => 'terminal,tools-and-resources',
'test,tester' => 'testing', 'test,tester' => 'testing',
'markdown,text files,fichiers texte,formats,text-based,plaintext,markup language,markdown,plain text,basé sur du texte,langage balisé' => 'plaintext,formats,text-files', 'markdown,text files,fichiers texte,formats,text-based,plaintext,markup language,markdown,plain text,basé sur du texte,langage balisé' => 'plaintext,formats,text-files',
'time to update,maintainers,tech-debt,legacy code,long term software,temps pour mettre à jour' => 'maintenance,tech-debt', 'time to update,maintainers,tech-debt,legacy code,long term software,temps pour mettre à jour' => 'maintenance,tech-debt',
'to do,to-do,à faire' => 'todo', 'to do,to-do,à faire' => 'todo',
'tool,resources,a script,outil,a collection,a catalog,awesome list,links,outils,ressources,password manager,logiciels' => 'tools-and-resources', 'tool,tools-and-resources,resources,a script,outil,a collection,a catalog,awesome list,links,outils,ressources,password manager,logiciels' => 'tools-and-resources',
'training,course,conference talk,learning,homeschool,expert,specializ,tacit knowledge,tribal knowledge,formation,cours,conférence,apprentissage' => 'education', 'training,course,conference talk,learning,homeschool,expert,specializ,tacit knowledge,tribal knowledge,formation,cours,conférence,apprentissage' => 'education',
'.txt,text-based,fichiers txt' => 'text-files', '.txt,text-based,fichiers txt' => 'text-files',
'ui,interfaces utilisateur' => 'ui', 'ui,interfaces utilisateur' => 'ui',
'ux,the experience of,usable,uxer,user experience,expérience utilisateur' => 'ux', 'ux,the experience of,usable,uxer,user experience,expérience utilisateur' => 'ux',
'vps,serveur privé virtuel' => 'cloud,vps,hosting', 'vps,serveur privé virtuel' => 'cloud,privacy-and-security,hosting',
'web archive,web archiving,save any website,bookmarks,wayback machine,archive.org,archivebox,archive web' => 'web-archiving', 'web archive,web archiving,save any website,bookmarks,wayback machine,archive.org,archivebox,archive web' => 'web-archiving',
'webring' => 'discovery,small-web,webring', 'webring' => 'discovery,small-web,webring',
'wordpress,personal website,blog roll,blogroll,blogosphere,webring,digital garden,to blog,blogs' => 'blogging,writing,discovery,small-web', 'wordpress,personal website,personal websites,blog roll,blogroll,blogosphere,webring,digital garden,to blog,blogs' => 'blogging,writing,discovery,small-web',
'work,travail,contract work,previous job,my work,coworkers,coworker,the job,workgroup' => 'work', 'work,travail,contract work,previous job,my work,coworkers,coworker,the job,workgroup' => 'work',
'youtube.com,invidious,peertube,watch?v' => 'video', 'youtube.com,invidious,peertube,watch?v' => 'video',
'zoemp,zoemp.be' => 'zoemp' 'zoemp,zoemp.be' => 'zoemp'