Skip to content

hehehai/vercut

Repository files navigation

Vercut

A fast, multilingual text segmentation tool for breaking text into sentences, phrases, and words.

Live Demo | Report Bug | Request Feature

Features

  • Multilingual Support - Supports 19+ languages including English, Chinese, Japanese, Korean, Thai, Arabic, and more
  • Multiple Segmentation Modes - Segment text into sentences, phrases, or words
  • East Asian Text Processing - Advanced CJK, Thai, and Khmer word segmentation using ICU
  • Fast & Lightweight - Runs entirely in the browser with no server-side processing
  • Token Analysis - View detailed token information with offsets and punctuation detection
  • Share Results - Generate shareable URLs with your segmentation results
  • Internationalization - UI available in English and Chinese
  • Open Source - MIT licensed and free to use

Tech Stack

Getting Started

Prerequisites

  • Node.js 20+
  • pnpm 9+

Installation

# Clone the repository
git clone https://github.com/nicepkg/vercut.git
cd vercut

# Install dependencies
pnpm install

Development

# Start development server
pnpm dev

Open http://localhost:3001 in your browser.

Build

# Build for production
pnpm build

Deploy

# Deploy to Cloudflare Workers
cd apps/web
pnpm deploy

Project Structure

vercut/
├── apps/
│   └── web/              # Main web application
│       ├── src/
│       │   ├── components/   # React components
│       │   ├── lib/          # Utilities and helpers
│       │   ├── routes/       # TanStack Router routes
│       │   └── types/        # TypeScript types
│       └── public/           # Static assets
└── packages/
    └── config/           # Shared configuration

Available Scripts

Command Description
pnpm dev Start development server
pnpm build Build for production
pnpm check-types Type check all packages
pnpm check Run linting and formatting

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Acknowledgments

License

This project is licensed under the MIT License - see the LICENSE file for details.


About

A powerful online text segmentation tool supporting multiple languages and segmentation modes.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •