Spell Check Inspection
📌 API Reference: https://verify-automation.globalvision.co/reference/createspellingjob
This feature will automatically scan text for spelling errors and suggest corrections to help ensure content accuracy.
Supported Languages/Dictionaries
The following languages are supported:
You can leverage any of the features below to prepare your inspection:
Feature | API Parameter Example |
---|
Document ID (required) |
CODE
{
"documentId": "your_doc_ID"
}
|
Dictionary Names Set the dictionary names you wish to use in your spelling inspection. Choose from any of the languages/dictionaries listed above. |
CODE
"dictionaryNames": [
"English (Canada)",
"Danish"
|
Custom Dictionary IDs No Default Value An array of unique IDs (UUIDs) that identify the custom dictionaries to apply during the spelling inspection. These dictionaries allow you to include domain-specific terms (e.g., brand names, technical vocabulary) that should be considered valid.
|
CODE
"customDictionaryIds": "30b7-5f6-4d01-ab-44"
|
Preform OCR | |
Layers Visibility By default, all layers are visible. Configures which layers in a document are visible during the inspection process. This is especially relevant for files that contain multiple or complex layers, such as PDF or design files.
|
CODE
"layersVisibility": [
{
"name": "layer1",
"visible": false
},
{
"name": "layer2",
"visible": false
}
]
|
Crop to PDF Box Type Sets the PDF box used to crop the document for inspection. Options are: CropBox , MediaBox , BleedBox , TrimBox , and ArtBox . Choosing the appropriate box helps focus the inspection on the desired content area and can improve accuracy by excluding irrelevant margins or marks.
|
CODE
"pdfBoxType": "TrimBox"
|
Ignore Regex Pattern Set the Regex pattern that will be used to ignore spelling errors. The pattern should follow the ECMAScript standard. |
CODE
"ignoreRegexPattern":
"\\b(?:ArtProof|ScanTVS)\\b"
|
Report Type |
CODE
"reportType": "default"
|
Inspection Results (API Output)
Inspection Result | API Output Example |
---|
Report URL |
CODE
"reportUrl": "https://verify-automation-api.globalvision.co/files/automation-report?fileKey=PDF_File_Key"
|
XFDF Reports |
CODE
"xfdfReports": {
"master": null,
"sample": "https://verify-automation-api.globalvision.co/files/automation-report?fileKey=XFDF_File_key"
{
|
Spellcheck Results Individual Results Every result found by the spell check inspection will be shown with the following info: word is the original word found in the document
confidence shows the confidence level of the spell check mistake, on a 0 → 1 scale
errorType labels the type of spell-check mistake
index and diffIndex individually identify each spell check mistake found
Results Coordinates suggestions is an array containing the dictionary name and word suggestion(s) to fix the spell check mistake found.
|
NONE
{
"confidence": 0.8,
"errorType": "General",
"index": 0,
"location": {
"boundingBox": {
"bottom": 392.05,
"left": 222.583,
"right": 325.072,
"top": 372.454
},
"pageNumber": 1
},
"suggestions": [
{
"dictionaryName": "English (USA)",
"suggestions": [
"Metamucil"
]
}
],
"word": "Bittamucin",
"diffIndex": 1
}
|
Spell Check Results Summary |
CODE
"spellingErrorsAmount": 9
|