<commit_before># Spell corrector

"Spell corrector" is a system designed to correct misspellings in Italian language. Statistical data are retrieved from the italian version of Wikipedia.

## Report
To read the story behind this project and to understand why it works, you should read [this](https://raw.githubusercontent.com/lucach/spellcorrect/master/thesis/main.pdf) (in Italian).

## Usage

- **End users**: http://spellcorrect.chiodini.org/
- API (for developers): http://api.spellcorrect.chiodini.org/

## API Definition

### Queries
Queries are in the form ```http://api.spellcorrect.chiodini.org/correct/<str>```, where ```<str>``` is the query you want to perform.

### Responses
Responses are JSON encoded and contain the following data:
- ```cache```: whether the result has been served from the cache
- ```input```: input string
- ```corrected```: corrected string
- ```elapsed_time```: total computational time needed to serve your response
- ```queries```: total number of queries needed to choose the best correction<commit_msg>Use a proper URL for thesis hosting in readme too<commit_after># Spell corrector

"Spell corrector" is a system designed to correct misspellings in Italian language. Statistical data are retrieved from the italian version of Wikipedia.

## Report
To read the story behind this project and to understand why it works, you should read [this](https://files.chiodini.org/Tesina_Correzione_ortografica.pdf) (in Italian).

## Usage

- **End users**: http://spellcorrect.chiodini.org/
- API (for developers): http://api.spellcorrect.chiodini.org/

## API Definition

### Queries
Queries are in the form ```http://api.spellcorrect.chiodini.org/correct/<str>```, where ```<str>``` is the query you want to perform.

### Responses
Responses are JSON encoded and contain the following data:
- ```cache```: whether the result has been served from the cache
- ```input```: input string
- ```corrected```: corrected string
- ```elapsed_time```: total computational time needed to serve your response
- ```queries```: total number of queries needed to choose the best correction
{'fraction_non_alphanumeric': 0.12060778727445394, 'fraction_numerical': 0.0, 'mean_word_length': 4.951977401129944, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1390815', 'n_tokens_mistral': 593, 'n_tokens_neox': 586, 'n_words': 242}