Skip to content

🪓 simple app to pit two sentence splitters against one another to understand their differences

Notifications You must be signed in to change notification settings

jparkerweb/splitter-vs-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪓 Splitter vs Splitter

A web-based tool to compare different sentence splitting libraries side by side. Currently compares:

Features

  • Real-time sentence splitting comparison
  • Visual color-coding of sentences for easy comparison
  • Sentence count display
  • Responsive design
  • Keyboard shortcuts (Ctrl + Enter to split)

Tech Stack

  • Express.js backend
  • Vanilla JavaScript frontend
  • CSS3 with Flexbox
  • No external UI libraries or frameworks

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/splitter-vs-splitter.git
cd splitter-vs-splitter
  1. Install dependencies:
npm install
  1. Create a .env file with the following (edit the port as needed):
cp .env.example .env

Development

Run the development server with auto-reload:

npm run dev

Production

Run the production server:

npm start

Usage

  1. Enter or paste your text in the input area
  2. Click "Process Text" or press Ctrl + Enter
  3. Compare the results from both libraries side by side
  4. Each sentence is highlighted with a matching color in both outputs for easy comparison

Example

Example

About

🪓 simple app to pit two sentence splitters against one another to understand their differences

Topics

Resources

Stars

Watchers

Forks