Segment Refactoring 🔄

Fix AI-generated segment markers with correct character counts

← Back to Home

Input Segmented Text

Paste your full document with segments marked like "**Segment 1:** (487 characters)"

Enter or paste your text above

or paste text above

Refactoring Settings

Define where segmentation starts and ends in your document

Define how segments are marked in your text. Use %n or %d in patterns to match any number (e.g., Segment 1, Segment 22, Segment 100).

✅ Both formats work together! Plain pattern automatically ignores bold markers (uses negative lookbehind). Safe for mixed documents.

Format 1

Example of one marker from your text (for reference only)

Use %n or %d as placeholders for any number. Character count is automatically optional. Be specific to avoid matching unintended text.

Per-segment delimiter: Use \n for blank line between segments. Leave empty to run segments until next marker. Content after last segment is preserved.

Format 2

Example of one marker from your text (for reference only)

Use %n or %d as placeholders for any number. Character count is automatically optional. Be specific to avoid matching unintended text.

Per-segment delimiter: Use \n for blank line between segments. Leave empty to run segments until next marker. Content after last segment is preserved.

Segments will be adjusted to match this limit while preserving sentence boundaries

How Refactoring Works

1

Paste Your Full Document

Include everything: story title, metadata, segments, and storyboards. The tool will only process the segmented section.

2

Set Start and End Markers

Define where segmentation begins (e.g., "**Segment 1:**") and ends (e.g., "---"). Content outside these markers is preserved.

3

Process & Download

Review the refactored segments with corrected character counts, then download or copy the complete document.

Example Input:

## Story 1: "The Title"

**Segment 1:** (487 characters)
Text here with incorrect count...

**Segment 2:** (512 characters)
More text...

---

### Storyboard Images
(This section won't be re-segmented)

💡 Pro Tip:

The tool uses the same smart chunking algorithm as the main mode, so sentences are never broken mid-way. No tolerance setting is needed!

All processing happens in your browser. Your text never leaves your device.