Skip to content
Back to skills

Collocation Morphology Preprocessor

ASecurity

Preprocess English text with WordNet-style collocation matching, tokenization, and inflectional normalization.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill collocation_morphology_preprocessor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collocation Morphology Preprocessor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collocation Morphology Preprocessor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-collocation-morphology-preprocessor/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-collocation-morphology-preprocessor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: collocation_morphology_preprocessor
description: Preprocess English text with WordNet-style collocation matching, tokenization, and inflectional normalization.
---

# Collocation and Morphology Preprocessor

Use this skill when a recovery or application needs the preprocessing behavior described in the WordNet report: one sentence per line, WordNet collocation search, tokenization, part-of-speech hints, and morphology-aware lookup forms.

## Inputs
- Raw English text.
- A list of known collocations, using spaces or underscores.

## Outputs
- Sentence records with original text, token records, normalized lemmas, POS hints, and collocation spans.

## Workflow
1. Split bounded text into sentence records.
2. Lowercase and remove punctuation for matching while preserving original sentence text.
3. Greedily match known collocations before single-token normalization.
4. Normalize regular plurals and common `-ing` or `-ed` inflections.
5. Emit unknown tokens rather than dropping them, because the ConText-style tagger must record unresolved reasons.

## Validation
Run `python tests/test_preprocessor.py` or the Distiller skill-tree validator with tests enabled.

## Limitations
The POS hints are deterministic and lightweight. They are sufficient for reduced recovery but not a replacement for a full part-of-speech tagger.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…