# TextRazor

TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 6
- **Triggers:** 0
- **Slug:** `TEXTRAZOR`
- **Version:** 20260316_00

## Tools

### Get Account Information

**Slug:** `TEXTRAZOR_ACCOUNT_INFO`

This tool retrieves comprehensive information about a TextRazor account, providing essential details about the account's status, usage, and limits. It returns an Account object containing properties such as the current subscription plan, concurrent request limits, and daily usage among others, making it crucial for monitoring API usage, managing requests, and ensuring compliance with subscription limits.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Classify Text

**Slug:** `TEXTRAZOR_CLASSIFY_TEXT`

This tool will classify text into predefined categories using TextRazor's classification capabilities. It takes input text, optional cleanup mode and language, and returns a list of relevant categories with their confidence scores from the analysis. The tool supports various built-in classifiers including: - textrazor_iab: IAB QAG segments - textrazor_iab_content_taxonomy_3.0: IAB Content Taxonomy v3.0 (2022) - textrazor_mediatopics_2023Q1: Latest IPTC Media Topics (March 2023) - And other versions of these taxonomies

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | The text content to be classified (up to 200kb UTF-8 encoded text) |
| `classifiers` | string | Yes | Comma-separated list of classifiers to use for text classification |
| `cleanup_mode` | string | No | Controls preprocessing cleanup mode (raw, stripTags, cleanHTML) |
| `language_override` | string | No | Force TextRazor to analyze content with specific language (ISO-639-2 code) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Manage Custom Classifiers

**Slug:** `TEXTRAZOR_CUSTOM_CLASSIFIER_MANAGER`

This tool manages custom classifiers in TextRazor, allowing users to create, update, and manage custom classification categories.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of categories to return when listing categories. |
| `offset` | integer | No | Offset for pagination when listing categories. |
| `operation` | string ("create_update" | "delete" | "get_categories" | "get_category" | "delete_category") | Yes | The operation to perform on the classifier. |
| `categories` | array | No | List of categories to create/update. Required for create_update operation. |
| `category_id` | string | No | The category ID when performing operations on a specific category. |
| `classifier_id` | string | Yes | The unique identifier for the classifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Dictionary Manager

**Slug:** `TEXTRAZOR_DICTIONARY_MANAGER`

Manage custom entity dictionaries in TextRazor for enhanced named entity recognition. This tool enables you to create and manage dictionaries of domain-specific entities (e.g., product names, company names, technical terms) that TextRazor will recognize in text analysis. Operations include: - Creating new dictionaries with configurable matching rules - Listing all available dictionaries - Retrieving dictionary details and configuration - Deleting dictionaries - Adding, retrieving, and removing dictionary entries Note: Dictionaries created here can be used in text analysis by specifying their IDs in the 'entityDictionaries' parameter of TextRazor analysis requests.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `entries` | array | No | List of dictionary entries to add or delete. Required for 'add_entries' and 'delete_entries' operations. Each entry must have at least a 'text' field. |
| `operation` | string ("create" | "list" | "get" | "delete" | "add_entries" | "get_entries" | "delete_entries") | Yes | The operation to perform: 'create' creates a new dictionary, 'list' lists all dictionaries, 'get' retrieves dictionary details, 'delete' removes a dictionary, 'add_entries' adds entities to a dictionary, 'get_entries' retrieves all entries from a dictionary, 'delete_entries' removes specific entries from a dictionary. |
| `dictionary_id` | string | No | The unique identifier for the dictionary. Required for all operations except 'list'. Use a descriptive name like 'tech_companies' or 'product_names'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Extract Named Entities from Text

**Slug:** `TEXTRAZOR_EXTRACT_ENTITIES`

Extract named entities (people, places, companies, etc.) from text using TextRazor's entity extraction API. The tool will identify and classify named entities within the provided text, returning detailed information about each entity including its type, confidence score, and relevance score. The API returns many entities by default; filter by `relevanceScore` and `confidenceScore` thresholds to retain only meaningful results.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | The text to analyze for entity extraction (max 200kb) |
| `cleanup_mode` | string | No | Controls preprocessing cleanup mode |
| `language_override` | string | No | ISO-639-2 language code to force analysis in a specific language |
| `entities_allow_overlap` | boolean | No | When True, entities in response may overlap |
| `entities_filter_dbpedia_types` | array | No | List of DBPedia types to filter entities |
| `entities_filter_freebase_types` | array | No | List of Freebase types to filter entities |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Analyze Content with TextRazor

**Slug:** `TEXTRAZOR_TEXT_RAZOR_ANALYZE_CONTENT`

A comprehensive content analysis tool that combines multiple TextRazor extractors to perform a complete analysis of the input text. This action allows users to analyze text content with multiple extractors in a single API call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | Yes | The text content to be analyzed (up to 200kb UTF-8 encoded) |
| `extractors` | array | No | List of analysis features to perform Only extractors explicitly listed will run; omitted extractors produce no output in the response. Accepted values are exactly: 'entities', 'topics', 'words', 'phrases', 'dependency-trees', 'relations', 'entailments', 'senses'. Unsupported names cause an invalid request error. |
| `cleanup_mode` | string | No | Controls preprocessing cleanup mode |
| `language_override` | string | No | ISO-639-2 language code to force analysis in a specific language |
| `cleanup_use_metadata` | boolean | No | Use document metadata in analysis |
| `cleanup_return_cleaned` | boolean | No | Return the cleaned text in response |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
