Lingo is a sample app with a server behind it, for anyone who teaches a language. Learners practice speaking with an AI tutor that runs on the phone, and every word they say is scored. Teachers publish courses, hold live classes and earn from them. A finished course ends with a signed PDF certificate that anyone can check. The app and the server are one Maven project, written in Java on both sides.

This chapter is the user’s guide: what each kind of user sees and can do. Lingo: Building on the sample is the other half. It explains how the project is built and what to change to make it yours.

One app serves everyone. The server gives every account a set of roles, and the app opens on the screens for the role the account holds.

RoleWhat it adds

Learner

Practice every day: phrase drills scored word by word, role-play conversations with the tutor, and video lessons. Earn XP, keep a streak, unlock badges, buy courses, ask the teacher questions, join live classes and collect certificates.

Creator

Write courses of phrase, conversation and video lessons, publish them free or at a price, schedule live classes and hold them, and see what the courses earn.

Administrator

Grant roles: registering makes a learner, and an administrator makes a teacher a creator.

Trying it

Start the server on the development profile. It needs nothing installed: the database is in memory, push notifications are printed on the console, and the cloud tutor answers from rules built into the server:

cd scripts/lingo
CN1_PROFILE=dev backend/server.sh run

Then run the app in the simulator, from another terminal:

cd scripts/lingo
mvn verify -Psimulator -DskipTests -Dcodename1.platform=javase

The demo has five courses in Spanish and French, a teacher with three live classes coming up, and a learner two lessons into Spanish for Travellers. Every demo account has the password lingo-demo:

learner@lingo.example

a learner with a streak and a course under way

learner2@lingo.example

a second learner

creator@lingo.example

a teacher with published courses

admin@lingo.example

a creator who also grants roles

The learner

The Lingo welcome screen with buttons to sign in and to create an account

The welcome screen signs in or creates an account. A new account is a learner. On a phone, the server’s address is set here too.

Today

Today: the streak and XP at the top, the course to continue with the daily goal as a ring, the week’s streak, and the learner’s courses

The app opens on today. The flame is the streak, the bolt the learner’s XP. The card continues the course under way, with the daily goal as a ring around it; Practice now opens the next lesson. Below are the week’s days of practice and the courses the learner is in. The tabs at the bottom lead to the catalogue, the live classes and the learner’s own page.

A phrase lesson

A phrase lesson: the phrase in Spanish, its translation, buttons to listen at normal and at reduced speed, a hint, and the microphone

The app speaks each phrase first, as a teacher would. Listen says it again, and the button beside it repeats it at a slower pace. The learner taps the microphone and says it. Where the device has no speech recognizer, such as the simulator, the phrase is typed instead and scored the same way.

The scored phrase: each word colored by how well it was heard, the verdict, the words to work on and the score

Each word is colored by how well it was heard, and the verdict names the words to work on. A phrase passes at 50%, and 80% counts as good. Try again repeats it; Continue moves on.

Conversations and videos

A conversation lesson: the scene, the tutor playing a waiter in Spanish, and the learner’s replies

A conversation lesson is a role-play: the tutor plays the waiter, the station clerk or the new colleague, at the course’s level. The learner answers by voice or by typing, and the tutor corrects mistakes as it goes. The screen shows which tutor answers: the phone’s own model, the model the learner downloaded, the cloud tutor or the scripted partner. A video lesson plays the teacher’s recording.

A video lesson: the teacher’s recorded slides playing above the lesson title and summary

Rewards

Lesson complete: a trophy, the XP earned, the score, the streak and the level, the daily goal, and a badge unlocked

A finished lesson shows the XP earned, the score, the streak and the level, and any badge it unlocked. The last lesson of a course issues its certificate.

The learner’s page

The learner’s page in dark mode: their name and level, tiles for streak, XP, lessons and minutes practiced, and links to achievements, the leaderboard and certificates

The learner’s page holds their numbers and everything else: badges, the leaderboard, certificates, the tutor, Pro, purchases, the profile and the settings. A certificate opens as the PDF itself, with the verification result beside it, and can be shared.

A certificate of completion shown as the signed PDF, with the verification result and a button to share it

The certificate’s QR code opens the server’s verification page for anyone who receives it.

Tutor shows which tutor the phone uses and, on a phone that can run one, offers to download the on-device model, about 470 MB, on Wi-Fi only unless the learner says otherwise.

Settings

Settings: the profile, the password, the tutor download and cloud tutor switches, and the practice reminder

Cloud tutor is off until the learner turns it on: with it on, a phone that can’t run a tutor sends the conversation to the server. The practice reminder nudges the learner when the day’s goal isn’t done. The app follows the device’s language and its light or dark mode, or the learner’s choice here.

The creator

The studio: the earnings, the published courses, drafts and live classes, each course with its learners and price, and the classes coming up

A creator opens on the studio: what the courses have earned, which is 70% of every sale, and how many learners are in them. New starts a course: its language, level, price and accent color. A course takes three kinds of lessons:

  • phrases, each with its translation and a pronunciation hint;

  • a conversation, given as the scene and the tutor’s role;

  • a video, recorded on the phone or picked from the gallery.

Publish puts the course in the catalogue. A creator can schedule a live class, start it when it’s time, and end it. Learners with a seat are told as it starts, and join from their Live tab: they see the teacher, and the teacher sees each of them.

A live class from the teacher’s side: the class title, the camera preview, and buttons to mute, turn off the camera, switch cameras and end the class

On a desktop

The same app runs as a desktop application, laid out for a wide window:

Lingo in a desktop window: today’s goal ring, the course to continue and the week’s streak across the full width
The studio in a desktop window: earnings, published courses, drafts and live classes

The administrator

The administrator’s studio has an extra button at the top, Accounts. It lists everyone who can sign in. Opening an account switches its roles on or off, including creator, or suspends it. An administrator can’t take away their own admin role or suspend their own account, and the last active administrator can’t be removed.