The AI Text Processor is a web application designed to facilitate language detection, translation, and summarization of text. Built with React and Tailwind CSS, this application leverages AI capabilities to provide users with a seamless experience in processing text across multiple languages.
- Language Detection: Automatically detects the language of the input text.
- Translation: Translates text between various languages using an AI-powered translator.
- Summarization: Summarizes long texts into concise formats, allowing users to grasp key points quickly.
- User-Friendly Interface: A clean and responsive UI built with Tailwind CSS for an optimal user experience.
- React: A JavaScript library for building user interfaces.
- Tailwind CSS: A utility-first CSS framework for styling.
- React Toastify: For displaying notifications and alerts.
- Vite: A build tool that provides a fast development environment.
To get started with the AI Text Processor, follow these steps:
-
Clone the Repository:
git clone https://github.com/yourusername/ai-text-processor.git cd ai-text-processor
-
Install Dependencies: Make sure you have Node.js installed. Then run:
npm install
-
Run the Development Server: Start the application in development mode:
npm run dev
-
Open in Browser: Navigate to
http://localhost:5173
in your web browser to view the application.
- Input Text: Type or paste the text you want to process in the input area.
- Detect Language: Click the "Send" button to detect the language of the input text.
- Translate: Select the target language from the dropdown and click "Translate" to get the translated text.
- Summarize: If the output text is lengthy, you can choose the summarization options and click "Summarize" to get a concise version.
- The application is designed to work on Chrome version 131 to Chrome 136.
- Some features may not be fully supported on older versions of browsers or on mobile devices.
- Desktop: Windows, macOS, and Linux
- Mobile: Android and iOS (may have limited functionality)
- Chrome AI APIs Overview: Chrome AI APIs Overview
- Summarizer API Documentation: Summarizer API Documentation
- Translator API Documentation: Translator API Documentation
- Language Detection API Documentation: Language Detection API Documentation
- TextProcessor: The main component that handles user input, output display, and integrates language detection, translation, and summarization functionalities.
- InputSection: A component for user input, including a textarea and a send button.
- OutputSection: Displays the processed output, detected language, and translated text.
- SummaryControls: Provides options for summarization type, format, and length.
- TranslationControls: Allows users to select the target language for translation.
- useLanguageDetection: Custom hook for detecting the language of the input text.
- useTranslation: Custom hook for handling text translation.
- useSummarization: Custom hook for summarizing the output text.
The application uses Tailwind CSS for styling, with additional custom styles defined in globals.css
. The design is responsive and adapts to different screen sizes.
Contributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request.
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Thanks to the developers of the libraries and frameworks used in this project.
- Special thanks to the open-source community for their contributions.