A research-grounded, NLP-powered platform for adaptive vocabulary and language learning
Appìl is a web-based platform that helps learners, educators, and researchers improve vocabulary and linguistic competence through Natural Language Processing (NLP), interactive semantic graphs, and AI-assisted lexical analysis. The system was designed and developed as part of a doctoral research project situated at the intersection of Second Language Acquisition (SLA), digital pedagogy, and computational linguistics, within the broader field of Intelligent Computer-Assisted Language Learning (ICALL).
Rather than relying on purely algorithmic content adaptation, Appìl grounds its personalization in established SLA theory, combining individualized flashcards, adaptive exercises, and real-time linguistic feedback with a CEFR-aligned progression model. The result is an open, scientifically informed alternative to commercially driven language-learning applications.
This repository contains the final software release accompanying the thesis "Appìl: An Interface for Lexical and Linguistic Competence Improvement." As part of this doctoral work, Appìl was deployed and maintained online for 11 months, from June 2024 to May 2025.
Who is this for?
- Language learners seeking contextual, theory-grounded vocabulary practice
- Educators looking for CEFR-aligned digital learning tools
- Linguistics and SLA researchers interested in ICALL system design
- NLP practitioners exploring applied word sense disambiguation and semantic graph visualization
- Word Sense Disambiguation (WSD) — Resolves ambiguous words in context using Lesk-based algorithms over WordNet lexicons.
- Named Entity Recognition (NER) — Extracts and categorizes entities (organizations, locations, people) using spaCy.
- Interactive Semantic Graphs — Visualizes word relationship networks (synonyms, antonyms, meronyms, holonyms) for contextual learning.
- Progress & Lexical Analytics — Tracks learner growth across vocabulary dimensions with performance metrics.
- CEFR-Aligned Personalization — Adapts flashcards and exercises to the learner's evolving proficiency level.
- Full Containerization — Docker Compose setup for instant, reproducible deployment.
Appìl is built as a multi-container microservice system, separating web routing and UI concerns from computationally intensive linguistic analysis.
┌─────────────────────────────┐
│ User Browser │
└─────────────┬───────────────┘
│ HTTP (Port 8080)
▼
┌─────────────────────────────────┐
│ Apache Tomcat Container │
│ Spring Boot (Java 17 WAR) │
│ (Controllers, UI, Spring Sec) │
└──────────┬────────────┬─────────┘
│ │
MySQL Connection (3306)│ │ HTTP (Port 5000)
▼ ▼
┌─────────────────────────┐ ┌───────────────────────────┐
│ MySQL Container │ │ Python Flask NLP Service │
│ (App Database / JPA) │ │ (PyWSD, spaCy, WordNet) │
└─────────────────────────┘ └───────────────────────────┘
Request flow:
- The user submits text or a learning request through the browser.
- Spring Boot handles routing, authentication, and session management.
- The Java backend forwards linguistic analysis requests to the Flask NLP microservice.
- Flask performs WSD and NER using PyWSD, NLTK/WordNet, and spaCy.
- Results are returned to Spring Boot and rendered as interactive semantic graphs in the UI.
- Learner interactions and analytics are persisted in MySQL via Spring Data JPA.
| Component | Responsibility |
|---|---|
| Frontend / Java Backend | Spring Boot application (WAR) on Apache Tomcat 10. Serves UI, handles security, renders Thymeleaf templates and 3D/2D graph visualizations. |
| NLP Microservice | Python Flask service on Gunicorn, exposing /disambiguate and /ner endpoints. |
| Database | MySQL 8.0, managing user data, test results, and analytics; auto-initialized on startup. |
appil/
├── java-app/ # Spring Boot application
│ ├── src/
│ │ ├── main/ # Controllers, services, security, resources, templates
│ │ └── test/ # Unit and integration tests
│ ├── target/ # Build output (WAR, compiled classes — generated, not tracked)
│ ├── Dockerfile
│ └── pom.xml
├── python-service/ # Python Flask NLP microservice (WSD, NER)
│ ├── app.py
│ ├── Dockerfile
│ └── requirements.txt
├── docker-compose.yml # Multi-container orchestration
├── setup.sh # Interactive local configuration script
├── LICENSE-MIT # License for the Appìl source code
├── LICENSE-CC # License for CC BY-SA–derived content (see ATTRIBUTIONS.md)
├── ATTRIBUTIONS.md
└── README.md
Frontend & UI
- Font Awesome — icons and UI indicators
- D3.js — interactive semantic graph rendering
- Three.js — supplementary 3D visual canvas
- Thymeleaf, HTML5, CSS3 — dynamic template generation
Backend (Java)
- Java 17, Spring Boot 3 (Spring Data JPA, Spring Security, Spring Web)
- Apache Tomcat 10
- MySQL Connector/J
NLP Microservice (Python)
- Python 3.10+, Flask
- PyWSD & NLTK (WordNet) — word sense disambiguation and lexical metrics
- spaCy (
en_core_web_sm) — named entity recognition - Gunicorn — WSGI HTTP server
- Java 17+
- Maven 3.9+
- Python 3.10+
- Docker 24+ and Docker Compose
- MySQL 8.0 (if running outside Docker)
The fastest way to launch Appìl with all services (Spring Boot, Python NLP, MySQL) is Docker Compose.
# Clone the repository
git clone https://github.com/your-username/appil.git
cd appil
# Build the Spring Boot WAR package
cd java-app
mvn clean package -DskipTests
cd ..
# Start all services
docker-compose up --build -dOpen your browser and navigate to:
To configure the database and application properties manually:
chmod +x setup.sh
./setup.shThis script prompts for database credentials and host URLs, generates java-app/src/main/resources/application.properties, and builds the WAR file automatically.
Run the Java backend
cd java-app
mvn spring-boot:runRun the NLP microservice
cd python-service
pip install -r requirements.txt
python app.pyRun only the database
docker compose up mysqlThe Flask microservice exposes independent endpoints that can be reused outside the main application.
Performs word sense disambiguation on a given sentence and target word.
Request
{
"sentence": "The bank raised interest rates yesterday.",
"target_word": "bank"
}Response
{
"word": "bank",
"sense": "bank.n.02",
"definition": "a financial institution that accepts deposits and channels the money into lending activities",
"confidence": 0.87
}Extracts and categorizes named entities from input text.
Request
{
"text": "Pasquale Esposito presented Appìl at the University of Salerno."
}Response
{
"entities": [
{ "text": "Pasquale Esposito", "label": "PERSON" },
{ "text": "Appìl", "label": "PRODUCT" },
{ "text": "University of Salerno", "label": "ORG" }
]
}This platform was developed as part of a doctoral study examining how open, data-driven systems can enhance learner autonomy and motivation while preserving instructional coherence within a structured pedagogical framework. As part of this doctoral work, Appìl was deployed and maintained online for 11 months, from June 2024 to May 2025, during which it was used for the field-based evaluation described below.
The research adopts a mixed-methods approach, combining:
- A systematic review of SLA theories and digital learning methodologies
- The computational design and implementation of the Appìl platform
- A field-based evaluation of its pedagogical effectiveness
Findings indicate that personalization grounded in SLA theory — rather than purely algorithmic adaptation — significantly improves learner motivation, vocabulary retention, and engagement, though sustaining participation and addressing digital literacy barriers remain open challenges.
Theoretical foundations draw on:
- Second Language Acquisition: Ellis (2008), Krashen (1982), Long (1996)
- Cognitive and educational psychology: Vygotsky (1986), Kahneman (2011), Evans (2008)
- Motivation theory: Deci & Ryan (2014), Zimmerman (2002)
- ICALL system design: Heift & Schulze (2007)
- Linguistic Linked Open Data: Chiarcos et al. (2013)
- CEFR proficiency framework: Council of Europe (2020)
For the full theoretical treatment, empirical study design, and evaluation results, please refer to the accompanying thesis.
If you use Appìl in academic work, please cite the accompanying thesis:
Esposito, P. (2026). Appìl: An Interface for Lexical and Linguistic Competence Improvement.
Doctoral thesis.
The official thesis record is available in the University of Salerno's institutional repository (IRIS): https://www.iris.unisa.it/handle/11386/4938058
Appìl is built on the shoulders of a wide ecosystem of open-source software, open lexical databases, and open knowledge resources. In particular, the project owes its lexical and semantic backbone to WordNet and its computational accessibility to PyWSD, NLTK, and spaCy; its interactive semantic graph visualizations to D3.js, with Three.js providing supplementary 3D rendering; and its application backbone to Spring Boot, Apache Tomcat, and Flask/Gunicorn. Illustrative content, example sentences, and cross-checked entity/world knowledge used during development and testing were also informed by Wikipedia and Wiktionary, both released under the Creative Commons Attribution-ShareAlike license.
A complete, itemized list of every library, dataset, and resource used — including licenses and copyright holders — is maintained in ATTRIBUTIONS.md. Contributors adding new dependencies are asked to update that file accordingly.
Appìl is dual-licensed:
- Source code — released under the MIT License.
- CC BY-derived content (e.g., illustrative text or examples adapted, modified, or processed from Wikipedia/Wiktionary) — released under LICENSE-CC. Any text that is produced, modified, or otherwise processed from Wikipedia and used within the app for learning purposes remains licensed under CC BY 4.0 and is attributed to Wikipedia at the point of display, each time it appears in the interface. The same applies to any images sourced from Wikipedia/Wikimedia Commons: each image carries its own in-app attribution to Wikipedia at its point of use.
See ATTRIBUTIONS.md for the full breakdown of which resources fall under which license.
Developed by Pasquale Esposito as part of a doctoral thesis submission. For research inquiries or questions regarding the underlying linguistic models, please open an issue or reach out via the repository contact details.
Active development on Appìl in this form has concluded, and this repository is archived as the final release accompanying the thesis. The codebase, documentation, and underlying research remain publicly available for study, reuse, and reference.
The experience gained in building Appìl — spanning SLA-grounded personalization, NLP-driven lexical analysis, and open linguistic data — is informing a future project that carries this work forward. Updates will be shared through this repository and the funding channels above.