Categories

Filter Text Sentences

Quickly return all sentences that match a pattern or a regex

The pattern to match against (not used for all filter types)

Characters that mark the end of sentences

Match case when filtering

Keep original spacing and punctuation

Remove duplicate sentences

Sort results alphabetically

Maximum sentence length (for length filter type)

Maximum number of words (for word count filter type)

Key Facts

Category
Text Processing
Input Types
textarea, select, text, checkbox
Output Type
text
Sample Coverage
4
API Ready
Yes

Overview

Filter Text Sentences is a powerful utility designed to help you quickly extract, isolate, and organize specific sentences from large blocks of text based on custom patterns, regex, or structural criteria.

When to Use

  • Extracting specific data points or quotes from long documents or transcripts.
  • Cleaning up messy text by removing sentences that don't meet your length or content requirements.
  • Analyzing writing style by isolating questions, statements, or sentences containing specific keywords.

How It Works

  • Paste your source text into the input area.
  • Select your preferred filter type, such as 'Contains Text', 'Regular Expression', or 'Is a Question'.
  • Configure optional settings like case sensitivity, duplicate removal, or sorting.
  • Choose your desired output format, such as a numbered list or newline-separated text, and generate your results.

Use Cases

Isolating all questions from a customer support chat transcript for FAQ creation.
Extracting specific sentences containing technical keywords from a long research paper.
Cleaning a dataset by removing sentences that are too short or contain numeric values.

Examples

1. Extracting Questions from Transcripts

Customer Support Manager
Background
I have a long transcript of a customer support call and need to identify every question the customer asked.
Problem
Manually scanning a multi-page transcript for questions is inefficient.
How to Use
Paste the transcript, select 'Is a Question' as the filter type, and set the output format to 'Numbered List'.
Outcome
A clean, numbered list of every question asked during the call, ready for analysis.

2. Filtering Technical Requirements

Software Developer
Background
I have a project specification document and need to extract only the sentences that contain the word 'must'.
Problem
The document is too long to manually highlight all requirement sentences.
How to Use
Paste the document text, select 'Contains Text' as the filter type, enter 'must' in the pattern field, and choose 'Bullet Points' for the output.
Outcome
A concise bulleted list of all mandatory requirements extracted from the document.

Try with Samples

video, text, regex

Related Hubs

FAQ

Can I use regular expressions to filter sentences?

Yes, select the 'Regular Expression' filter type and enter your regex pattern in the Pattern field.

How does the tool identify where a sentence ends?

The tool uses standard sentence-ending punctuation defined in the 'Sentence Endings' field, which defaults to periods, exclamation marks, and question marks.

Can I remove duplicate sentences from my results?

Yes, simply check the 'Remove Duplicates' box before processing your text.

What output formats are available?

You can output results as a paragraph, newline-separated, space-separated, numbered list, bullet points, or semicolon-separated.

Is the filtering case-sensitive?

By default, it is not, but you can enable the 'Case Sensitive' checkbox to ensure exact matching.

API Documentation

Request Endpoint

POST /en/api/tools/text-sentence-filter

Request Parameters

Parameter Name Type Required Description
textInput textarea Yes -
filterType select Yes -
pattern text No The pattern to match against (not used for all filter types)
sentenceEndings text No Characters that mark the end of sentences
caseSensitive checkbox No Match case when filtering
preserveFormatting checkbox No Keep original spacing and punctuation
outputFormat select Yes -
removeDuplicates checkbox No Remove duplicate sentences
sortAlphabetically checkbox No Sort results alphabetically
maxLength text No Maximum sentence length (for length filter type)
maxWords text No Maximum number of words (for word count filter type)

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-text-sentence-filter": {
      "name": "text-sentence-filter",
      "description": "Quickly return all sentences that match a pattern or a regex",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=text-sentence-filter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]