https://github.com/andreaselia/grammarvel
Grammar for your words.
https://github.com/andreaselia/grammarvel
Last synced: 3 months ago
JSON representation
Grammar for your words.
- Host: GitHub
- URL: https://github.com/andreaselia/grammarvel
- Owner: andreaselia
- Created: 2021-01-26T02:05:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T15:51:32.000Z (over 5 years ago)
- Last Synced: 2025-01-19T17:11:21.950Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 583 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grammarvel
Grammar for your words.
## How it should work as an API
Input:
```
text=helo my name name es andy
```
URL encoded:
```
text=helo%20my%20name%20name%20es%20andy
```
Output:
```
{
"offset": 0,
"length": 4,
"text": "helo my name name es andy",
"type": "SENTENCE_START_UPPERCASE",
"message": "This sentence does not start with an uppercase letter.",
"suggestions": [
{
"value": "Helo"
}
],
},
{
"offset": 8,
"length": 9,
"text": "helo my name name es andy",
"type": "WORD_REPEATED",
"message": "You repeated a word.",
"suggestions": [
{
"value": "name"
}
],
},
{
"offset": 13,
"length": 2,
"text": "helo my name name es andy",
"type": "SPELLING_MISTAKE",
"message": "Possible spelling mistake found.",
"suggestions": [
{
"value": "is"
},
{
"value": "as"
}
]
},
{
"offset": 16,
"length": 4,
"text": "helo my name name es andy",
"type": "SPELLING_MISTAKE",
"message": "Possible spelling mistake found.",
"suggestions": [
{
"value": "Andy"
},
{
"value": "and"
}
]
}
```