ai-cliche-scanner
v1.0.1
Published
Lightweight zero-dependency AI cliché detector, throat-clearing opener remover, and prose naturalness scorer based on 14M PubMed research patterns.
Maintainers
Readme
ai-cliche-scanner
Lightweight, zero-dependency AI cliché detector, throat-clearing opener remover, and prose naturalness scorer based on 14-million PubMed research patterns across 7 languages. Powering the AI Cliché Scanner at WordCount Pulse.
Live Interactive Sandbox: Try the visual scanner in your browser at WordCount Pulse AI Cliché Scanner.
Why Pattern-Based AI Detection?
Probabilistic neural classifiers frequently flag non-native English speakers and academic prose as AI-generated. ai-cliche-scanner takes a transparent, deterministic approach: it cross-references text against 3,250+ over-represented AI tokens and formulaic idioms identified from comparative post-2022 research manuscripts and LLM generation benchmarks.
4 Categorized Detection Tiers
- Dead Giveaways (Tier 1): Unmistakable AI tokens (delve, testament, tapestry, pivotal, beacon, myriad, realm).
- Throat-Clearing Openers (Tier 2): Empty preambles ("In today's fast-paced digital world...", "It is crucial to remember that...").
- Mechanical Transitions (Tier 3): Formulaic connectors (Moreover, Furthermore, In conclusion, It is worth noting).
- Corporate Filler (Tier 4): Empty synergy jargon (streamline, revolutionize, leverage, paradigm shift).
Installation
npm install ai-cliche-scanner
# or
yarn add ai-cliche-scanner
# or
pnpm add ai-cliche-scannerQuickstart
Node.js (ESM & CJS)
import {
scanCliches,
calculateNaturalness,
humanizeText,
removeThroatClearing,
TOP_AI_CLICHES
} from 'ai-cliche-scanner';
const sampleText = `
In today's fast-paced digital world, it is crucial to remember that artificial intelligence
plays a pivotal role. In this study, we delve into the intricate tapestry of neural networks.
This stands as a testament to algorithmic progress.
`;
// 1. Scan for AI clichés and view categorization
const scan = scanCliches(sampleText);
console.log(scan.totalMatches); // 4
console.log(scan.naturalnessScore); // 18 (out of 100)
console.log(scan.grade); // "Heavy AI Lexical Fingerprint"
console.log(scan.matches[0].phrase); // "in today's fast-paced digital world"
// 2. Direct naturalness score
const score = calculateNaturalness(sampleText);
console.log(`Naturalness: ${score}%`); // 18%
// 3. Strip formulaic throat-clearing intros
const trimmed = removeThroatClearing(sampleText);
console.log(trimmed);
// "Artificial intelligence plays a pivotal role. In this study, we delve into the intricate tapestry..."
// 4. Automated prose humanization with contextual inflections
const humanized = humanizeText(sampleText);
console.log(humanized.humanizedText);
// "Artificial intelligence is central. In this study, we explore the diverse mix of neural networks. This demonstrates algorithmic progress."
console.log(humanized.scoreAfter); // 100%
// 5. Inspect top cataloged AI buzzwords
console.log(TOP_AI_CLICHES.slice(0, 5));
// ['delve', 'delve into', 'tapestry', 'rich tapestry', 'testament']Browser ESM (via jsDelivr CDN)
<script type="module">
import { scanCliches, calculateNaturalness } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/index.mjs';
const result = scanCliches("We delve into this tapestry.");
console.log(result.naturalnessScore); // 45
</script>Multilingual Support Across 7 Languages
ai-cliche-scanner includes native lexical dictionaries, verb inflections, and grammatical rules for all 7 languages supported by WordCount Pulse:
- English (
en): AI Cliché Scanner - Spanish (
es): Detector de Frases Hechas de IA - Portuguese (
pt): Detector de Clichês de IA - French (
fr): Détecteur de Clichés IA - German (
de): KI-Phrasen-Prüfer & Text-Humanisierer - Italian (
it): Rilevatore di Frasi Fatte IA - Japanese (
ja): AI定型表現チェッカー (CJK境界解析)
Automatic Language Detection
import { detectTextLocale, scanCliches } from 'ai-cliche-scanner';
const text = "Es crucial destacar la importancia de este enfoque holístico.";
const locale = detectTextLocale(text); // "es"
const results = scanCliches(text, locale);
console.log(results.matches[0].phrase); // "es crucial destacar"Live Companion Tools & Ecosystem
ai-cliche-scanner is part of the WordCount Pulse text intelligence suite:
- Core Word & Character Counter: WordCount Pulse
- 7-Formula Readability Engine: Readability Checker
- Academic Manuscript Formatter: Words to Pages
- Keynote Pacing & Speech Timing: Speech to Words
Research & Documentation
Read the empirical benchmark methodology and corpus analysis: WordCount Pulse Research: AI Clichés in Writing.
License
MIT © WordCount Pulse
