Repository navigation
Add content-based automatic tag and category extraction to WordPress plugin - #278
Conversation
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
|
@copilot Die Tags und Categorien sollen aus dem Titel, Text des Betrags / Seite vom Wordpress bei speichern automatisch extraiert werden. Nutze Funktionen wie Häufigkeit, Relevanz, usw. (best-pratice) |
Co-authored-by: makr-code <[email protected]>
Verstanden und umgesetzt in Commit 3d848d7! Das Plugin analysiert jetzt beim Speichern Titel und Textinhalt von WordPress-Beiträgen und extrahiert automatisch relevante Tags und Kategorien mittels: ✅ Wortfrequenz-Analyse - häufige Begriffe werden Tags Beispiel: Funktioniert für alle Beiträge/Seiten beim Speichern, nicht nur GitHub-bezogene Inhalte. |
Co-authored-by: makr-code <[email protected]>
|
@copilot review |
Code Review abgeschlossen ✅ Zusammenfassung der ImplementierungStatus: Die Implementierung ist vollständig und funktionsfähig. Getestete Aspekte:
Architektur:
Best Practices umgesetzt:
Keine kritischen Issues gefunden. |
#297/#298/#301/#302/#303) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/360c1856-0695-4524-b3de-7ca9c8938a73 Co-authored-by: makr-code <[email protected]>
…e bridge pattern Stub #310: Add SignOperationFn bridge + Config::fail_closed_signing to AutoRebalancer; signOperation() delegates to injected fn when set, throws when fail_closed_signing=true and key provisioning fails instead of emitting UNSIGNED tokens. Stub #311: persistAccept() now parses value as JSON; populates ConsensusLogEntry.data from full JSON object and entry.operation from type key; plain strings fall back to previous mapping; entry.term and entry.timestamp populated unconditionally. Stub #278: PredictEndFn = std::function<json(case_id)> bridge + setPredictEndFn() static setter added to PmPredictEndFunction; execute() delegates when fn is set, null-placeholder fallback retained. Stub #283: AdminModelLoadFn / AdminModelListFn bridges + static setters added to PmLoadAdminModelFunction / PmListAdminModelsFunction; both execute() methods delegate to injected fns; not-implemented / empty-array fallbacks retained. Stub #282: LLMGenerateFn bridge + setLLMGenerateFn() instance setter added to AIPluginGenerator; generatePlugin() delegates post-validation when fn is set; ERR_PLUGIN_LOAD_FAILED fallback retained. Stub #292: JSON-array detection added to getNodeLabels(); _labels values starting with '[' are parsed as nlohmann::json arrays first, eliminating comma-ambiguity for JSON- encoded labels; legacy comma-split retained as fallback. STUB_INVENTORY: 6 stubs resolved (292 -> 298 resolved, 24 -> 18 active). Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/fa990f4b-73b3-4046-9cc5-cdb3d9e1e68e Co-authored-by: makr-code <[email protected]>
#297/#298/#301/#302/#303) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/360c1856-0695-4524-b3de-7ca9c8938a73 Co-authored-by: makr-code <[email protected]>
Implements automatic tag and category extraction from WordPress post/page content using text analysis techniques, eliminating manual taxonomy management.
Core Changes
New taxonomy manager (
class-taxonomy-manager.php, ~370 LOC)save_postfor automatic processing on all posts/pagesText Analysis Features
Admin configuration (
class-admin.php)Plugin integration (
themisdb-downloads.php)plugins_loadedExample Output
For post titled "ThemisDB Version 1.4.0 - Neue Release mit Windows Support":
Generated Tags: Themisdb, Version, Windows, Support, Release, Neue, Database, Installation
Generated Categories: Themisdb Version, Windows Support, Neue Release
Behavior
Taxonomies are extracted and assigned when:
The plugin analyzes the combined title and body text, applies scoring algorithms, and assigns the most relevant terms as tags and phrases as categories.
Performance
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.