Apache OpenNLP Language Detection API

The Language Detection API from Apache OpenNLP — 1 operation(s) for language detection.

Operations 1

POST /detect/language Apache OpenNLP Detect Language #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apache-opennlp-language-detection-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apache-opennlp-language-detection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache OpenNLP Tools Chunking Language Detection API
  description: Apache OpenNLP is a machine learning based toolkit for processing natural language text, supporting tokenization, sentence segmentation, POS tagging, named entity extraction, chunking, parsing, and coreference resolution. This API represents the REST-accessible surface of the OpenNLP toolkit.
  version: 2.5.8
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  contact:
    url: https://opennlp.apache.org/
servers:
- url: https://{host}/opennlp
  description: Apache OpenNLP REST service
  variables:
    host:
      default: localhost:8080
tags:
- name: Language Detection
paths:
  /detect/language:
    post:
      operationId: detectLanguage
      summary: Apache OpenNLP Detect Language
      description: Detect the language of the provided text using the language detector model.
      tags:
      - Language Detection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TextRequest'
      responses:
        '200':
          description: Language detection result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LanguageDetectionResult'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    LanguageProbability:
      type: object
      properties:
        language:
          type: string
          description: ISO-639-3 language code
          example: eng
        probability:
          type: number
          description: Probability score
          example: 0.98
    LanguageDetectionResult:
      type: object
      properties:
        bestLanguage:
          type: string
          description: ISO-639-3 code of most likely language
          example: eng
        confidence:
          type: number
          description: Confidence score 0-1
          example: 0.98
        languages:
          type: array
          description: All detected languages with probabilities
          items:
            $ref: '#/components/schemas/LanguageProbability'
    TextRequest:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          description: Input text to process
          example: Pierre Vinken, 61 years old, will join the board as a nonexecutive director Nov. 29.
        language:
          type: string
          description: ISO-639-3 language code hint
          example: eng
        modelId:
          type: string
          description: Specific model to use (optional)
          example: en-sent.bin
x-generated-from: documentation