# Text Analysis

> Text Analysis is an Agent Skill for documents published in the mofa-org/mofa repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Analyze text for sentiment, entities, keywords, and linguistic patterns

- Skill name: `text_analysis`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/mofa-org/mofa/blob/HEAD/examples/skills/text_analysis/SKILL.md
- Repository: mofa-org/mofa (290 GitHub stars when collected)

## SKILL.md

# Text Analysis Skill

This skill provides natural language processing capabilities for text analysis.

## When to Use

Use this skill when you need to:
- Analyze text sentiment (positive/negative/neutral)
- Extract named entities (people, places, organizations)
- Identify keywords and phrases
- Perform text classification
- Summarize long documents

## Analysis Types

### Sentiment Analysis
Determines the emotional tone of text:
- **Positive**: Expresses satisfaction, happiness, approval
- **Negative**: Expresses dissatisfaction, sadness, disapproval
- **Neutral**: Factual or informational content

### Entity Extraction
Identifies and categorizes:
- **People**: Person names
- **Places**: Locations, addresses
- **Organizations**: Companies, institutions
- **Dates**: Temporal expressions
- **Numbers**: Quantities, measurements

### Keyword Analysis
Extracts important terms and phrases:
- TF-IDF scoring
- Phrase frequency
- Collocation detection

## Code Tools

@code: python analyze.py --input {input} - Perform various text analyses

## Example Usage

```
Analyze the sentiment of this customer review: "The product exceeded my expectations!"
Result: Positive sentiment detected (confidence: 0.95)
```

```
Extract entities from: "Apple Inc. was founded by Steve Jobs in Cupertino, California."
Entities:
- Organization: Apple Inc.
- Person: Steve Jobs
- Location: Cupertino, California
```

---

Source: https://www.openparable.com/skill/documents/text-analysis (OpenParable). Cite the canonical URL above.
