# Self‑Correcting Agent This repository contains a minimal **Node.js** implementation of a self‑correcting 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.