input stringlengths 2 54 | expected stringlengths 2 52 | source stringclasses 6
values |
|---|---|---|
Ne ba bè ka dumuni labèn. | ne ba bɛ ka dumuni labɛn | phrase-accent |
Ne ba be ka dumuni laben. | ne ba bɛ ka dumuni labɛn | phrase-ascii |
Ne ba bɛ ka dumuni labɛn. | ne ba bɛ ka dumuni labɛn | phrase-apostrophe |
So ka bon. | so ka bon | phrase-accent |
So ka bon. | so ka bon | phrase-ascii |
So ka bon. | so ka bon | phrase-apostrophe |
Funteni bè bi kosèbè. | funteni bɛ bi kosɛbɛ | phrase-accent |
Funteni be bi kosebe. | funteni bɛ bi kosɛbɛ | phrase-ascii |
Funteni bɛ bi kosɛbɛ. | funteni bɛ bi kosɛbɛ | phrase-apostrophe |
Da tugu, n bè i deli. | da tugu n bɛ i deli | phrase-accent |
Da tugu, n be i deli. | da tugu n bɛ i deli | phrase-ascii |
Da tugu, n bɛ i deli. | da tugu n bɛ i deli | phrase-apostrophe |
Malo ka di. | malo ka di | phrase-accent |
Malo ka di. | malo ka di | phrase-ascii |
Malo ka di. | malo ka di | phrase-apostrophe |
An ka waati man ca. | an ka waati man ca | phrase-accent |
An ka waati man ca. | an ka waati man ca | phrase-ascii |
An ka waati man ca. | an ka waati man ca | phrase-apostrophe |
Kini bèna labèn lèri tilancè kònò. | kini bɛna labɛn lɛri tilancɛ kɔnɔ | phrase-accent |
Kini bɛna labɛn lɛri tilancɛ kɔnɔ. | kini bɛna labɛn lɛri tilancɛ kɔnɔ | phrase-apostrophe |
Finyè bèna ci kosèbè sini sògòma. | fiɲɛ bɛna ci kosɛbɛ sini sɔgɔma | phrase-accent |
Fiɲɛ bɛna ci kosɛbɛ sini sɔgɔma. | fiɲɛ bɛna ci kosɛbɛ sini sɔgɔma | phrase-apostrophe |
Amadu bèna weleli kè, a mana se Sikaso la tuma min na. | amadu bɛna weleli kɛ a mana se sikaso la tuma min na | phrase-accent |
Amadu bena weleli ke, a mana se Sikaso la tuma min na. | amadu bɛna weleli kɛ a mana se sikaso la tuma min na | phrase-ascii |
Amadu bɛna weleli kɛ, a mana se Sikaso la tuma min na. | amadu bɛna weleli kɛ a mana se sikaso la tuma min na | phrase-apostrophe |
An ye kònòni kè ka mèn, mògò si ma na. | an ye kɔnɔni kɛ ka mɛn mɔgɔ si ma na | phrase-accent |
An ye kɔnɔni kɛ ka mɛn, mɔgɔ si ma na. | an ye kɔnɔni kɛ ka mɛn mɔgɔ si ma na | phrase-apostrophe |
Ni i bè i ka kuma labato, i bèna hèrè sòrò. | ni i bɛ i ka kuma labato i bɛna hɛrɛ sɔrɔ | phrase-accent |
Ni i bɛ i ka kuma labato, i bɛna hɛrɛ sɔrɔ. | ni i bɛ i ka kuma labato i bɛna hɛrɛ sɔrɔ | phrase-apostrophe |
Ni suman tigè ma nyè, denbaya bèna dèsè nyò la. | ni suman tigɛ ma ɲɛ denbaya bɛna dɛsɛ ɲɔ la | phrase-accent |
Ni suman tigɛ ma ɲɛ, denbaya bɛna dɛsɛ ɲɔ la. | ni suman tigɛ ma ɲɛ denbaya bɛna dɛsɛ ɲɔ la | phrase-apostrophe |
An tèna bò kènèma k'a sòrò funteni ma nògòya. | an tɛna bɔ kɛnɛma k'a sɔrɔ funteni ma nɔgɔya | phrase-accent |
An tɛna bɔ kɛnɛma k’a sɔrɔ funteni ma nɔgɔya. | an tɛna bɔ kɛnɛma k'a sɔrɔ funteni ma nɔgɔya | phrase-apostrophe |
Saheli finyè kalaman bè ka fiyè kabini tile saba. | saheli fiɲɛ kalaman bɛ ka fiyɛ kabini tile saba | phrase-accent |
Saheli fiɲɛ kalaman bɛ ka fiyɛ kabini tile saba. | saheli fiɲɛ kalaman bɛ ka fiyɛ kabini tile saba | phrase-apostrophe |
Kòkòdugu finyè bè ka ci kosèbè kabini tile saba. | kɔkɔdugu fiɲɛ bɛ ka ci kosɛbɛ kabini tile saba | phrase-accent |
Kɔkɔdugu fiɲɛ bɛ ka ci kosɛbɛ kabini tile saba. | kɔkɔdugu fiɲɛ bɛ ka ci kosɛbɛ kabini tile saba | phrase-apostrophe |
Ni i dusukun saniyalen tora, i na hèrè sòrò. | ni i dusukun saniyalen tora i na hɛrɛ sɔrɔ | phrase-accent |
Ni i dusukun saniyalen tora, i na hɛrɛ sɔrɔ. | ni i dusukun saniyalen tora i na hɛrɛ sɔrɔ | phrase-apostrophe |
A tè fèn feere fo ni syèw ye fan da. | a tɛ fɛn feere fo ni syɛw ye fan da | phrase-accent |
A tɛ fɛn feere fo ni syɛw ye fan da. | a tɛ fɛn feere fo ni syɛw ye fan da | phrase-apostrophe |
N'i tilala i ka ja ta la dòròn, i bè a ci n ma. | n'i tilala i ka ja ta la dɔrɔn i bɛ a ci n ma | phrase-accent |
N'i tilala i ka ja ta la doron, i be a ci n ma. | n'i tilala i ka ja ta la dɔrɔn i bɛ a ci n ma | phrase-ascii |
N’i tilala i ka ja ta la dɔrɔn, i bɛ a ci n ma. | n'i tilala i ka ja ta la dɔrɔn i bɛ a ci n ma | phrase-apostrophe |
Ni limaniya bè mògò dusukun na, siran tè yen. | ni limaniya bɛ mɔgɔ dusukun na siran tɛ yen | phrase-accent |
Ni limaniya be mogo dusukun na, siran te yen. | ni limaniya bɛ mɔgɔ dusukun na siran tɛ yen | phrase-ascii |
Ni limaniya bɛ mɔgɔ dusukun na, siran tɛ yen. | ni limaniya bɛ mɔgɔ dusukun na siran tɛ yen | phrase-apostrophe |
Ni donon kasi la, an bèna taa foro la. | ni donon kasi la an bɛna taa foro la | phrase-accent |
Ni donon kasi la, an bena taa foro la. | ni donon kasi la an bɛna taa foro la | phrase-ascii |
Ni donon kasi la, an bɛna taa foro la. | ni donon kasi la an bɛna taa foro la | phrase-apostrophe |
Suma bèna kè k'a daminè sògòma joona na. | suma bɛna kɛ k'a daminɛ sɔgɔma joona na | phrase-accent |
Suma bɛna kɛ k’a daminɛ sɔgɔma joona na. | suma bɛna kɛ k'a daminɛ sɔgɔma joona na | phrase-apostrophe |
Ni wari sera i ma, i ka laseli kè n ye. | ni wari sera i ma i ka laseli kɛ n ye | phrase-accent |
Ni wari sera i ma, i ka laseli ke n ye. | ni wari sera i ma i ka laseli kɛ n ye | phrase-ascii |
Ni wari sera i ma, i ka laseli kɛ n ye. | ni wari sera i ma i ka laseli kɛ n ye | phrase-apostrophe |
Ni tile bè yeelen bò, an bèna to jigiya la. | ni tile bɛ yeelen bɔ an bɛna to jigiya la | phrase-accent |
Ni tile bɛ yeelen bɔ, an bɛna to jigiya la. | ni tile bɛ yeelen bɔ an bɛna to jigiya la | phrase-apostrophe |
A man di n ye n'i bè kuma seli tuma. | a man di n ye n'i bɛ kuma seli tuma | phrase-accent |
A man di n ye n'i be kuma seli tuma. | a man di n ye n'i bɛ kuma seli tuma | phrase-ascii |
A man di n ye n’i bɛ kuma seli tuma. | a man di n ye n'i bɛ kuma seli tuma | phrase-apostrophe |
Be | bɛ | word-ascii |
bè | bɛ | word-accent |
Ke | kɛ | word-ascii |
kè | kɛ | word-accent |
Yere | yɛrɛ | word-ascii |
yèrè | yɛrɛ | word-accent |
Te | tɛ | word-ascii |
tè | tɛ | word-accent |
fò | fɔ | word-accent |
sòrò | sɔrɔ | word-accent |
Bee | bɛɛ | word-ascii |
bèè | bɛɛ | word-accent |
Fe | fɛ | word-ascii |
fè | fɛ | word-accent |
dò | dɔ | word-accent |
Kono | kɔnɔ | word-ascii |
kònò | kɔnɔ | word-accent |
Mogo | mɔgɔ | word-ascii |
mògò | mɔgɔ | word-accent |
bò | bɔ | word-accent |
Fen | fɛn | word-ascii |
fèn | fɛn | word-accent |
Yoro | yɔrɔ | word-ascii |
yòrò | yɔrɔ | word-accent |
Dow | dɔw | word-ascii |
dòw | dɔw | word-accent |
nyògòn | ɲɔgɔn | word-accent |
cè | cɛ | word-accent |
dòn | dɔn | word-accent |
nyè | ɲɛ | word-accent |
Koni | kɔni | word-ascii |
kòni | kɔni | word-accent |
Kosebe | kosɛbɛ | word-ascii |
kosèbè | kosɛbɛ | word-accent |
fòlò | fɔlɔ | word-accent |
Fene | fɛnɛ | word-ascii |
fènè | fɛnɛ | word-accent |
Kera | kɛra | word-ascii |
kèra | kɛra | word-accent |
Mogow | mɔgɔw | word-ascii |
Bambara orthography and text normalization
Writing conventions for Bambara (Bamanankan) in the standard Latin alphabet, a normalization table from common ASCII spellings to the standard, and a reference normalizer in Python. Maintained by Kooma.
Why this exists: Bambara is written in many ways in the wild — with or without ɛ/ɔ/ɲ/ŋ, with ny/ng digraphs, with or without tone marks, with French spellings for loanwords. Any comparison between two Bambara texts (a transcription and its reference, two translations, a search query and a document) is meaningless until both sides are written the same way. This repository fixes one way, documents it, and ships the code.
The alphabet
a b c d e ɛ f g h i j k l m n ɲ ŋ o ɔ p r s t u w y z — 27 letters. ɛ (open e), ɔ (open o), ɲ (palatal nasal, as in French gn), ŋ (velar nasal, as in English sing). Tone marks (à, á, ǎ…) and vowel length (aa) are part of the official orthography but optional in everyday writing.
Normalization table (excerpt)
| Seen in the wild | Standard | Rule |
|---|---|---|
ny (nyɛ, nyama) |
ɲ (ɲɛ, ɲama) |
digraph → letter |
ng at syllable onset (ngala) |
ŋ (ŋala) |
digraph → letter |
è / e for open e (bè, cè) |
ɛ (bɛ, cɛ) |
accent or plain e → ɛ when the word is in the lexicon with ɛ |
ò / o for open o (dòn) |
ɔ (dɔn) |
same, with ɔ |
ka n'a / k'a |
k'a |
elision written with apostrophe |
| tone marks (kà, kǎ) | removed for comparison | tone-insensitive matching by default |
Sikasso |
Sikaso |
Bambara spelling of place names |
The full table (normalization.csv, 260 rows) covers digraphs, accents, apostrophes, punctuation, numerals and the most frequent loanwords.
Reference normalizer
from bambara_normalize import normalize
normalize("Ne bè taa Sikasso nyɛ fɛ") # -> "ne bɛ taa sikaso ɲɛ fɛ"
bambara_normalize.py is ~120 lines, no dependencies, MIT-licensed. It is the normalizer to apply to both hypothesis and reference before computing WER or CER on Bambara; without it, error rates mostly measure spelling conventions rather than recognition.
What can and cannot be recovered
- The accent convention (
è,ò) and the old digraphs (ny,ng,ty,dy) are recovered by rule, every time. - Bare ASCII (
eforɛ,oforɔ) is ambiguous:bemay be bɛ but `ne* (I) is not nɛ. It is recovered only through the lexical table, which covers the most frequent words and place names, and never overwrites a form that is itself a standard word. On the reference sentences, half of the bare-ASCII rewrites are recovered in full; the rest keep one or two ASCII vowels. This is by design: a wrong guess is worse than a missing one. - Tone marks are removed, so the comparison is tone-insensitive. Pass
strip_tones=Falseto keep them.
Conventions used by Kooma
- Standard alphabet, no tone marks in output.
- French loanwords keep the French spelling when pronounced as French (téléphone), Bambara spelling when established (lɛri, mobili).
- Place and person names in Bambara spelling.
- Sentence punctuation as in French; no space before
?and!.
Files
README.md— this documentnormalization.csv— the tablebambara_normalize.py— the reference normalizerexamples.jsonl— 220 before/after pairs used as teststest_normalize.py— the test suite (python test_normalize.py)LICENSE— MIT for the code; CC BY 4.0 for documentation and data
License and citation
CC BY 4.0 (documentation and data), MIT (code).
@misc{kooma-bambara-orthography,
title = {Bambara orthography and text normalization},
author = {Kooma},
year = {2026},
url = {https://huggingface.co/datasets/kooma-ai/bambara-orthography}
}
Orthographe et normalisation du bambara (français)
Conventions d'écriture du bambara (bamanankan) en alphabet latin standard (27 lettres, dont ɛ, ɔ, ɲ, ŋ), table de normalisation des graphies courantes vers le standard, et normaliseur Python de référence. À appliquer aux deux côtés avant tout calcul de WER/CER : sans cela, on mesure des conventions d'orthographe, pas la reconnaissance. Maintenu par Kooma, https://kooma.ai
- Downloads last month
- 18