Keyword Density

Use this skill to compute how often a target keyword (or phrase) appears in a text, as a raw count and as a percentage of total words (0-100). Case-insensitive, whole-word matching, supports multi-word phrases. Deterministic, offline. Flags over-optimization above 3%.

ncreighton Updated

File contents

keyword-density

Use this skill to compute how often a target keyword (or phrase) appears in a text, as a raw count and as a percentage of total words (0-100). Case-insensitive, whole-word matching, supports multi-word phrases. Deterministic, offline. Flags over-optimization above 3%.

  • Kind: analyzer | Niche: publishing | Cost tier: free | Version: 0.1.0

Empire Integration

import sys
sys.path.insert(0, r'C:\D\Claude Code Projects\_SHARED')
import empire_bootstrap  # wires all shared paths

Usage

As a CLI:

python run.py --text <string> --keyword <string>

From a Python agent (ATEN runtime):

from skill_library import executor
result = executor.execute("keyword-density", {text=..., keyword=...})

Parameters

Name Type Required Description
text string yes The body text
keyword string yes Keyword or phrase to measure

Returns

object{"status": "ok"|"error", "result": ...}

ncreighton/empire-skills/tree/main/skills/keyword-density commit 90e5152ed8

Frequently asked questions

npx skillmds@latest add ncreighton/keyword-density