Skip to content
Back to skills

900 Feature Text Segmenter F76c00f5

ASecurity

Technical implementation notes for text segmentation.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentpython

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 900-feature-text-segmenter_f76c00f5 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 900 Feature Text Segmenter F76c00f5?

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

Security grade badge for 900 Feature Text Segmenter F76c00f5
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-900-feature-text-segmenter-f76c00f5/badge)](https://www.skillsdirectory.com/skills/tools-only-900-feature-text-segmenter-f76c00f5)

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

SKILL.md
---
phase: implementation
title: Implementation - Text Segmenter
description: Technical implementation notes for text segmentation.
---

# Implementation Guide

## Code Structure
**How is the code organized?**

- `pdf_to_epub/core/text_segmenter.py`

## Implementation Notes
**Key technical details to remember:**

### Sliding Window Formula
For a text of length `L`, `chunk_size` `S`, and `overlap` `O`:
- Chunk 1: `[0 : S]`
- Chunk 2: `[S - O : (S - O) + S]`
- ...and so on until the end of the string.

### Metadata
Ensure `end_index` is exclusive (standard Python slicing).

## Error Handling
**How do we handle failures?**

- Raise `ValueError` if `overlap >= chunk_size`.
- Handle `None` or empty string gracefully.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.