Apache OpenNLP · Capability

Apache OpenNLP Tools API — Language Detection

Apache OpenNLP Tools API — Language Detection. 1 operations. Lead operation: Apache OpenNLP Detect Language. Self-contained Naftiko capability covering one Apache Opennlp business surface.

Run with Naftiko Apache OpennlpLanguage Detection

What You Can Do

POST
Detectlanguage — Apache OpenNLP Detect Language
/v1/detect/language

MCP Tools

apache-opennlp-detect-language

Apache OpenNLP Detect Language

Capability Spec

tools-language-detection.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache OpenNLP Tools API — Language Detection
  description: 'Apache OpenNLP Tools API — Language Detection. 1 operations. Lead operation: Apache OpenNLP Detect Language.
    Self-contained Naftiko capability covering one Apache Opennlp business surface.'
  tags:
  - Apache Opennlp
  - Language Detection
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_OPENNLP_API_KEY: APACHE_OPENNLP_API_KEY
capability:
  consumes:
  - type: http
    namespace: tools-language-detection
    baseUri: https://{host}/opennlp
    description: Apache OpenNLP Tools API — Language Detection business capability. Self-contained, no shared references.
    resources:
    - name: detect-language
      path: /detect/language
      operations:
      - name: detectlanguage
        method: POST
        description: Apache OpenNLP Detect Language
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: tools-language-detection-rest
    port: 8080
    description: REST adapter for Apache OpenNLP Tools API — Language Detection. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/detect/language
      name: detect-language
      description: REST surface for detect-language.
      operations:
      - method: POST
        name: detectlanguage
        description: Apache OpenNLP Detect Language
        call: tools-language-detection.detectlanguage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tools-language-detection-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache OpenNLP Tools API — Language Detection. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: apache-opennlp-detect-language
      description: Apache OpenNLP Detect Language
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tools-language-detection.detectlanguage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.