Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Spelling Query is not returning expected results with Tap Client. #220

Description

@ViolentCrumble

Steps to Reproduce:

# Set our query type to Spelling
query = tap.query('spelling')

# no params needed

# pass in some test data
string = "Th is the frst graet hpapy blue anrgy cold sentence. This is the second fantastic sentence."

# query the api
strResult = tap.analyse_text(query, string)

# Print Result
print("-" * 40)
print("Spelling:")
print("-" * 40)
print("Input Text:\n\n", string)
print("\n")
print("Raw Result:\n\n")
print(json.dumps(strResult, indent=2))

Received Output:

result: 
{
  "data": {
    "spelling": {
      "timestamp": "2019-01-03T01:56:44.311809Z",
      "message": "",
      "querytime": 13,
      "analytics": [
        {
          "sentIdx": 0,
          "spelling": []
        },
        {
          "sentIdx": 1,
          "spelling": []
        }
      ]
    }
  }
}

Tried various sentences and spelling errors and the returned result was always the same.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions