SomaliWeb v1: A Quality-Filtered Somali Web Corpus with a Matched Tokenizer and a Public Language-Identification Benchmark
This paper introduces SomaliWeb v1, a publicly released, quality-filtered Somali corpus of approximately 303 million tokens accompanied by a matched BPE-16K tokenizer and the first public language-identification benchmark, which also exposes significant quality defects in existing multilingual Somali data distributions.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the internet as a massive, chaotic library containing books in hundreds of different languages. For a long time, the "Somali" section of this library was a mess. It wasn't a dedicated room with a clear sign; instead, Somali books were scattered randomly inside giant, mixed-language stacks, often mixed with trash, broken pages, or duplicate copies.
SomaliWeb v1 is the first time someone has gone into that chaotic library, built a dedicated room just for Somali, and organized it properly. Here is how the authors did it, explained simply:
1. The Problem: The "Noisy" Library
Before this project, if you wanted to teach a computer to understand Somali, you had to grab a giant bag of mixed-language text from the internet.
- The Mix: It contained Somali, but also English, French, and other languages mixed in.
- The Noise: Even the "cleaned" versions of these bags were full of errors. The authors found that one popular bag (called HPLT v2) had:
- 17% duplicates: Like having the same book printed 17 times and stapled together.
- 56% "Mojibake": This is when text looks like gibberish (e.g.,
éinstead ofé) because the computer read the letters wrong. It's like a book where the ink has smudged into nonsense. - Near-duplicates: Books that are 90% the same, just with a few words changed.
2. The Solution: The Six-Stage "Sieve"
The authors built a six-step machine (a pipeline) to filter the raw internet text down to only the good stuff. Think of it like a gold panning process:
- Step 1: The Duplicate Detector. They scanned every document and threw out exact copies. Result: They removed about 14% of the pile.
- Step 2: The Fix-It Station. They used a tool to repair the "gibberish" text and threw out anything too short (less than 50 words). Result: They fixed half the remaining text and removed short, useless snippets.
- Step 3: The Language Police. They ran a test to make sure the text was actually Somali. If a document was mostly English, it was kicked out. Result: A tiny bit of "English leakage" was removed.
- Step 4: The "Almost-Clone" Hunter. They used a smart math trick (MinHash) to find documents that were 80% identical to each other and kept only the best version. Result: They removed another 10% of the pile.
- Step 5: The Quality Check. They compared the text against a "gold standard" (Somali Wikipedia) to see if the words and patterns looked like fluent, natural Somali. If a document looked weird or broken, it was dropped. Result: They removed the bottom 15% of the lowest-quality text.
- Step 6: The Final Polish. They shuffled the remaining documents, split them into a "training" set and a "testing" set, and created a custom tokenizer.
3. The New Tools: A Custom Dictionary
When computers read text, they break words into smaller pieces called "tokens."
- The Old Way: Using a generic dictionary (like GPT-4's) meant Somali words were chopped into tiny, inefficient pieces. It was like trying to eat a large pizza with a tiny spoon; you need many, many spoonfuls (tokens) to finish the meal.
- The New Way: The authors built a custom dictionary specifically for Somali.
- The Result: Their dictionary is 40% more efficient. It takes 40% fewer "spoonfuls" to read the same amount of text. This saves money and computing power for anyone using this data later.
4. The Benchmark: A "Driver's Test" for Language Detectors
The authors also created a test to see which computer program is best at identifying Somali text. They tested three popular tools:
- The Surprise Winner: The oldest tool, called
langdetect, performed the best at spotting Somali. - The Loser: A newer, more complex tool (
fastText) failed miserably, often thinking Somali was a completely different language. - The Takeaway: Just because a tool is new doesn't mean it's better for specific languages.
Summary of What Was Released
The authors didn't just write a paper; they released three actual tools for the public:
- The Corpus: A clean, high-quality collection of 819,000 Somali documents (about 303 million words).
- The Tokenizer: A custom "dictionary" that reads Somali much more efficiently than generic ones.
- The Benchmark: A public test scorecard showing which language detectors actually work for Somali.
What they did NOT do (according to the paper):
They did not train a new AI chatbot or language model on this data yet. They only built the ingredients (the clean data and the tools) and proved that the ingredients are high quality. They are saving the "cooking" (training a model and testing how smart it gets) for a future version (v2).
In short: SomaliWeb v1 is the first time someone has taken the messy, broken Somali text from the internet, cleaned it up, organized it, and handed it to researchers with a custom set of tools, so they can finally build better AI for Somali speakers without having to do all the cleaning themselves.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.