=== RK - Smart Internal Linker ===
Contributors: rajkumar96
Tags: internal links, seo, gutenberg, linking, tf-idf
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, zero-API internal link suggestion engine for the Gutenberg editor. Uses local TF-IDF keyword scoring to surface relevant posts while you write.

== Description ==

RK Smart Internal Linker analyzes your content in real time and suggests the most relevant internal posts to link to — right inside the Gutenberg sidebar. No external APIs, no monthly fees, no data leaving your server.

**How it works:**

1. On activation, the plugin creates a keyword index table and begins indexing your published posts via WP-Cron (20 posts every 5 minutes).
2. When you open a post in the editor, the plugin extracts the top keywords and scores every other post by keyword overlap (TF-IDF).
3. The top 5 results appear in a sidebar panel with **Copy Link** and **Insert Link** buttons.

**Features:**

* 100% local — no API keys, no external calls
* TF-IDF keyword scoring for smart relevance
* Background indexing via WP-Cron (server-friendly batches)
* Instant re-index on post save
* Clean Gutenberg sidebar with score badges
* One-click copy or insert links

== Installation ==

1. Upload the `rk-smart-internal-linker` folder to `/wp-content/plugins/`.
2. Activate through **Plugins → Installed Plugins**.
3. Open any post in the Gutenberg editor and click the **link icon** in the top-right toolbar to open the Smart Internal Links sidebar.

== Changelog ==

= 1.0.0 =
* Initial release.
