Skip to content

Instantly share code, notes, and snippets.

@takahi-i
Last active August 29, 2015 14:20
Show Gist options
  • Save takahi-i/0da2ef3cf6ea89358982 to your computer and use it in GitHub Desktop.
Save takahi-i/0da2ef3cf6ea89358982 to your computer and use it in GitHub Desktop.
Image of JSON with symbol setting for RedPen server
{
"document": "Theyre is a blak rownd borl.",
"format": "json2",
"documentParser": "PLAIN",
"config": {
"lang" : "en",
"validators" : {
"CommaNumber": {},
"Contraction": {},
"DoubledWord": {},
"EndOfSentence": {},
"InvalidExpression": {},
"InvalidSymbol": {},
"InvalidWord": {},
"ParagraphNumber": {},
"Quotation": {},
"SectionLength": {
"properties": {
"max_char_num": "2000"
}
},
"SentenceLength": {
"properties": {
"max_len": "200"
}
},
},
"symbols": {
"EXCLAMATION_MARK": {
value="!"
},
"FULL_STOP": {
value="."
after-space="true"
}
"COMMA" : {
value=","
invalid-chars="、,"
after-space="true"
}
}
}
}
@gerryhocks
Copy link

Looks good.

I'll get this working for you next week if you like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment