Files
povtornyy-ekzamen-graf-s-re…/README.md
T

54 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SelfCorrecting Agent
This repository contains a minimal **Node.js** implementation of a selfcorrecting agent.
The project uses **no external frameworks** only the Node.js standard library.
## Features
- **Whitespace normalization** removes leading/trailing spaces and collapses multiple spaces.
- **Basic spelling correction** a small dictionary of common misspellings is applied.
- **Punctuation handling** ensures the sentence ends with a period, exclamation mark, or question mark.
## Requirements
- Node.js 14 or newer
## Installation
No installation is required. Just clone the repository and run the script.
```bash
git clone https://git.brojs.ru/kuzakhmetovartur/ekzamen-samokorrektiruyuschiysya-agent.git
cd ekzamen-samokorrektiruyuschiysya-agent
```
## Usage
Run the script from the command line, passing the sentence you want to correct as an argument.
```bash
node src/index.js " This is teh example sentence wich needs correction "
```
Output:
```
This is the example sentence which needs correction.
```
## Project Structure
```
src/
└── index.js # Main implementation
README.md # Project documentation
```
## Contributing
Feel free to fork the repository and submit pull requests.
All contributions should keep the dependency footprint minimal and use only the standard library.
## License
This project is licensed under the MIT License.