=== Word Guard – Content Scanning & Keyword Control ===
Contributors: wpsqr
Tags: editorial, scanning, consistency, replacement
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enforce editorial consistency in WordPress by scanning content against a customizable styleguide with suggested keyword replacements.

== Description ==

Word Guard is a lightweight **editorial styleguide and content consistency plugin for WordPress**. It helps editors, publishers, and content teams enforce approved terminology and writing standards across posts and pages.

Administrators can define a **custom editorial styleguide** by specifying keywords or phrases to flag, along with one or more preferred alternatives. Editors can then **scan content directly from the WordPress editor** to identify non-compliant language, highlight flagged terms, and replace them with approved alternatives in just a few clicks.

Unlike automated rewriting tools, Word Guard keeps editors in full control. Scans are manual, changes are intentional, and no content is modified without user approval.

Word Guard works seamlessly with both **Gutenberg** and the **Classic Editor**, making it ideal for modern WordPress sites as well as legacy setups.

This plugin is especially useful for:
- Editorial teams
- Publishers and news sites
- Agencies managing multiple writers
- Organizations enforcing brand or legal language standards

== Key Features: ==

**Smart Style Guide Management**
- Create and manage unlimited keyword/phrase rules
- Set single or multiple suggested replacements

**Real-Time Content Scanning**
- Manual scan initiation from within Gutenberg or Classic Editor
- Visual highlighting of non-compliant terms directly in content
- Detailed scan reports with context and suggestions

**One-Click Compliance Fixes**
- Replace flagged terms with approved alternatives in one click
- Apply changes to all occurrences
- Save changes made through the plugin

**Technical Excellence**
- **Lightning-fast scanning** (~2 seconds for 3,000-word posts)
- Zero performance impact on front-end
- No external API calls — everything happens locally

**Editor Compatibility**
- **Native Gutenberg Block Editor** integration
- **Classic Editor** full support
- Compatible with custom post types

**Security & Reliability**
- WordPress capability checks for all actions
- Nonce protection on all operations
- No automatic content modification
- Manual approval for all replacements

**Perfect For:**
- **Marketing Teams** maintaining brand voice consistency
- **Enterprise Websites** with strict compliance requirements
- **News Organizations** enforcing editorial style guides
- **E-commerce Sites** with consistent product terminology
- **Educational Institutions** with academic writing standards
- **Multi-language Sites** requiring terminology consistency
- **SEO Agencies** ensuring keyword consistency across content

== Usage ==
#### Managing the Styleguide
1. Log in as an administrator.
2. Go to **Word Guard**.
3. Add keywords or phrases you want to replace.
4. Define one or more preferred alternatives (comma-separated).
5. Save changes.

#### Scanning Content
1. Open a post in the Classic Editor or Gutenberg editor.
2. Click the **Word Guard Scan** button.
3. Review highlighted keywords.
4. Replace flagged terms using the suggested alternatives.

== Installation ==
1. Download the plugin `.zip` file.
2. Upload to your WordPress site:
   - Go to **Plugins > Add New > Upload Plugin** and choose the `.zip` file.
3. Activate the plugin from the **Plugins** menu.
4. Go to **Word Guard** to configure your styleguide.
5. Edit or create a post and run a manual scan from the editor interface.

== Frequently Asked Questions ==
= Does Word Guard automatically change my content? =
No. Scans are manual, and replacements are only applied when the editor chooses to do so.

= Is my content stored or sent externally? =
No. All scans are performed locally within your WordPress installation.

= Does Word Guard affect site performance? =
Word Guard is optimized for performance and scans typically complete in under 2 seconds for average-length posts.


== Screenshots ==
1. **Dashboard**
   ![Dashboard](assets/screenshot-1.png)
2. **Settings**
   ![Settings](assets/screenshot-2.png)
3. **Post Scan**
   ![Post Scan](assets/screenshot-3.png)

== Changelog ==

= 1.0.1 =
* Improved content scanning accuracy for keyword and phrase matching.
* Enhanced editor integration for better compatibility.
* Performance optimizations for faster scans on longer posts.
* Improved UI feedback during scan and replacement actions.

= 1.0.0 =
* Initial release with styleguide management, content scanning, and editor integration.

== Upgrade Notice ==
= 1.0.0 =
First stable release of Word Guard.

== Documentation ==
Full documentation is available on our website:
[Word Guard Documentation](https://www.wp-sqr.com/)

== Troubleshooting ==
1. Ensure the Word Guard plugin is activated and your WordPress version is at least 5.2.
2. Deactivate other plugins to check for conflicts.
