Divvun API

Documentation for the Divvun API endpoints

Introduction

Welcome to the Divvun API documentation. This API provides endpoints for interacting with the Divvun service.

Base URL

All API endpoints are relative to the base URL:

https://dev.api.giellalt.org

Endpoints

Health Check

GET /health application/json

Check the health status of the API.

Response
{
    "status": "ok"
}

Grammar Check

POST /grammar/:tag application/json

Check grammar for text. Available languages:

  • fo - Føroyskt
  • ga - Gaeilge
  • kl - Kalaallisut
  • nb - Norsk bokmål
  • se - Davvisámegiella
  • sma - Åarjelsaemien gïele
  • smj - Julevsámegiella
  • smn - Anarâškielâ
  • sms - Nuõrttsääʹmǩiõll
Request application/json
{
    "text": "sami"
}
Response application/json
{
  "text": "sami",
  "errs": [
    {
      "error_text": "sami",
      "start_index": 0,
      "end_index": 4,
      "error_code": "typo",
      "description": "Ii leat sátnelisttus",
      "suggestions": [
        "sámi"
      ],
      "title": "Čállinmeattáhus"
    }
  ]
}

Spell Check

POST /speller/:tag application/json

Check spelling for text. Available languages:

  • crk - ᓀᐦᐃᔭᐍᐏᐣ, Nēhiyawēwin
  • fi - Suomi
  • fit - Meänkieli
  • fkv - Kven Finnish
  • fo - Føroyskt
  • ga - Gaeilge
  • kl - Kalaallisut
  • krl - Karjala
  • nb - Norsk bokmål
  • olo - Livvin kieli
  • se - Davvisámegiella
  • sje - Bidumsámegiella
  • sma - Åarjelsaemien gïele
  • smj - Julevsámegiella
  • smn - Anarâškielâ
  • sms - Nuõrttsääʹmǩiõll
  • vep - Vepsä
  • vro - Võro kiil
Request application/json
{
    "text": "sami"
}
Response application/json
{
  "text": "sami",
  "results": [
    {
      "word": "sami",
      "is_correct": false,
      "suggestions": [
        {
          "value": "sámi",
          "weight": 14.529631
        },
        {
          "value": "sama",
          "weight": 40.2973
        },
        {
          "value": "sáme",
          "weight": 45.896103
        },
        {
          "value": "sabmi",
          "weight": 50.2973
        },
        {
          "value": "samai",
          "weight": 50.2973
        },
        {
          "value": "sapmi",
          "weight": 50.2973
        },
        {
          "value": "satmi",
          "weight": 50.2973
        },
        {
          "value": "samo",
          "weight": 55.2973
        },
        {
          "value": "samu",
          "weight": 55.2973
        },
        {
          "value": "somá",
          "weight": 56.623154
        }
      ]
    }
  ]
}