The German Syllable Splitter is a tool designed to split German words into their respective syllables. This can be useful for linguistic analysis, educational purposes, or text-to-speech applications.
- Splits German words into syllables accurately.
- Supports integration with other applications via an API.
- Lightweight and easy to use.
- api/: Contains the API implementation for the syllable splitter.
syllable_splitter/: Core logic for splitting syllables.utilities/: Helper functions and utilities.
- app/: Frontend application files.
globals.css: Global styles using Tailwind CSS.layout.tsx,page.tsx: Layout and main page components.
- dictionary/: Contains German dictionary files (
de_DE.aff,de_DE.dic) used for linguistic processing. - public/: Static assets like icons.
- Clone the repository:
git clone https://github.com/your-username/german-syllable-splitter.git
- Navigate to the project directory:
cd german-syllable-splitter - Install dependencies using pnpm:
pnpm install
- Start the development server:
pnpm dev
- Open your browser and navigate to
http://localhost:3000.
The API provides endpoints for splitting German words into syllables. Refer to the api/ folder for implementation details.
This project also uses Python Flask for the backend API. Flask is a lightweight WSGI web application framework in Python. It is used here to handle API requests for splitting German words into syllables.
- Navigate to the
api/directory:cd api - Run the Flask application:
flask run
- The API will be available at
http://127.0.0.1:5000by default.
/split: Accepts a POST request with a German word and returns its syllables.
Refer to the index.py file in the api/ directory for more details on the Flask implementation.
- Next.js: Framework for building the frontend.
- Tailwind CSS: Utility-first CSS framework.
- TypeScript: For type-safe JavaScript development.
- pnpm: Fast, disk space-efficient package manager.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push the branch.
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.