https://github.com/jparkerweb/splitter-vs-splitter
🪓 simple app to pit two sentence splitters against one another to understand their differences
https://github.com/jparkerweb/splitter-vs-splitter
comparer npm sentence-splitting
Last synced: about 2 months ago
JSON representation
🪓 simple app to pit two sentence splitters against one another to understand their differences
- Host: GitHub
- URL: https://github.com/jparkerweb/splitter-vs-splitter
- Owner: jparkerweb
- Created: 2024-12-18T19:21:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-30T21:55:54.000Z (4 months ago)
- Last Synced: 2025-02-12T09:59:49.394Z (4 months ago)
- Topics: comparer, npm, sentence-splitting
- Language: JavaScript
- Homepage: https://splitter.dyndns.org
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 🪓 Splitter vs Splitter
A web-based tool to compare different sentence splitting libraries side by side. Currently compares:
- [@stdlib/nlp-sentencize](https://www.npmjs.com/package/@stdlib/nlp-sentencize)
- [sentence-parse](https://www.npmjs.com/package/sentence-parse)## 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:
```bash
git clone https://github.com/yourusername/splitter-vs-splitter.git
cd splitter-vs-splitter
```2. Install dependencies:
```bash
npm install
```3. Create a `.env` file with the following (edit the port as needed):
```bash
cp .env.example .env
```### Development
Run the development server with auto-reload:
```bash
npm run dev
```### Production
Run the production server:
```bash
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
