mlaf-grammar-engine / README.md
Shaankar39's picture
Initial deploy: MLAF grammar engine
47b17cc verified
metadata
title: MLAF Grammar Engine
sdk: docker
app_port: 8300
pinned: false
short_description: FastAPI + SWI-Prolog backend for MLAF demo

MLAF Grammar Engine

Backend service for MLAF β€” Multimodal Language Acquisition Framework. An in-browser, real-time English grammar acquisition system for learners with motor impairment and deaf/hard-of-hearing users.

This Space hosts the FastAPI + SWI-Prolog grammar engine (X-bar syntax, binding theory, Indian Sign Language interference detection). The frontend lives at https://multi-modal-gesture-grammar.vercel.app.

Stack

  • FastAPI (Python 3.11) + Uvicorn
  • SWI-Prolog via pyswip
  • Pydantic v2

Endpoints

  • GET /health β€” liveness probe
  • POST /predict-next β€” grammatically valid next-token continuations
  • POST /validate β€” sentence well-formedness check
  • POST /interference β€” L1-interference (ISL β†’ English) pattern detection

Patent-Pending β€” Provisional application TEMP/E-1/22951/2026-KOL, Indian Patent Office (2026). All rights reserved.

Designed and built by Neil Shankar Ray.