Exploring the Swedish Kelly List Dataset

September 26, 2022

Last week, I contributed the Swedish Kelly list dataset to the Hugging Face Hub. Since then, I’ve been brainstorming ideas for a project to create with it.

About the Swedish Kelly List

The Swedish Kelly list is a frequency-based vocabulary list of 8,425 general-purpose Swedish words created by Språkbanken Text at the University of Gothenburg. It was generated from SweWaC, a 114 million-word web-acquired corpus, and its lemmas cover 80% of SweWaC. The Swedish Kelly list was created as a resource for language learners, and each lemma is annotated with a CEFR level. CEFR (The Common European Framework of Reference for Languages) is a standard for measuring language proficiency. It has six levels ranging from familiarity with everyday expressions and basic phrases (level A1) to understanding virtually everything you hear or read easily (level C2). Lemmas in the Swedish Kelly list are equally distributed across CEFR levels: there are 1404 A1, A2, B1, B2, and C1 lemmas and 1405 C2 lemmas.

A Possible Application

One of the applications suggested by the dataset’s creators is a program that evaluates whether a Swedish text is appropriate for a learner based on their proficiency. Building such a program didn’t sound fun, but I was curious about what it might entail. I wanted my program to consider the general readability of a text and readability specific to a learner’s proficiency, so I started by researching existing readability formulas for Swedish text.

Läsbarhetsindex (LIX)

The most common readability formula for Swedish text is LIX, an abbreviation of läsbarhetsindex (“readability index” in English). LIX generates a readability score based on the average number of words in sentences and the percentage of long words (defined as words longer than six letters). The higher the LIX score, the greater the complexity of the text.

LIX = (number of words ÷ number of sentences) + 100(number of long words ÷ number of words)

Since word length accounts for half of a LIX score, I wondered whether there was a correlation between length and CEFR level for lemmas in the Swedish Kelly list. I hypothesized that A1 lemmas would generally be shorter than C2 lemmas.

Exploring the Dataset

To test my hypothesis, I plotted the lemmas by their IDs and their length. IDs start at one and correspond to a lemma’s rank. For example, the lemma with an ID of 500 is the 500th most frequent lemma in the dataset. Additionally, the higher the frequency of a lemma, the more likely it is to be a beginner-level word.

Lemma Length by Lemma ID
Lemma Length by Lemma ID

Variation by CEFR Level

Since I was interested in how length varied by CEFR level, not just by rank, I colored each lemma’s marker according to the lemma’s CEFR level.

Lemma Length by Lemma ID and CEFR Level
Lemma Length by Lemma ID and CEFR Level

As I hypothesized, A1 lemmas were shorter than C2 lemmas. A1 lemmas had a mean length of 6.44 and a median length of five, while C2 lemmas had a mean length of 7.97 and a median length of eight. As expected, there were more two and three-letter lemmas at the A1 level than at the C2 level. But, surprisingly, way more A1 lemmas than C2 lemmas were longer than 20 letters. Additionally, the max length of A1 lemmas was 38, whereas the max length of C2 lemmas was 24.

Sampling Lemmas Longer Than 12 Letters

The data points were sparser and more varied for lemmas longer than 12 letters, so I sampled A1 and C2 lemmas longer than 12 and manually inspected them. There were 72 A1 lemmas and 74 C2 lemmas that fit this criterion. What stood out was that some A1 lemma entries included both a lemma and its alternative spellings. In contrast, all C2 lemma entries I sampled contained only one word. (The dataset’s documentation mentions that lemmas are sometimes provided with their spelling or stylistic variants, but I forgot this. 🙃)

Examples of A1 Lemmas Longer Than 12 Letters
idcefr_levellemmalemma_length
26A1inrikesminister15
27A1inrikespolitik14
61A1Storbritannien14
78A1utbildningsminister19
87A1och (vardagl. å; förk. o.)26
88A1vara (vardagl. va)18
103A1inte (formellt: icke, ej)25
115A1de (vardagl. dom)17
119A1sig (vardagl. sej)18
135A1någon (vardagl. nån, förk. ngn)31
Examples of C2 Lemmas Longer Than 12 Letters
idcefr_levellemmalemma_length
7054C2funktionalitet14
7066C2revolutionerande16
7080C2specifikation13
7085C2internationalisering20
7147C2specialisering14
7155C2styrelseordförande18
7161C2telekommunikation17
7162C2karakteristisk14
7163C2åklagarmyndighet16
7182C2samstämmighet13

Variation by Number of Words per Lemma

Since I was now interested in the number of words in a word’s lemma entry, I resized each lemma’s marker correspondingly. It turned out that most A1 lemmas longer than 12 letters contained more than one word.

Lemma Length by Lemma ID, CEFR Level, and Words Per Lemma
Lemma Length by Lemma ID, CEFR Level, and Words Per Lemma

When I excluded multiword lemmas from the plot, there were far more C2 lemmas (72) than A1 lemmas (nine).

Lemma Length by Lemma ID and CEFR Level
Lemma Length by Lemma ID and CEFR Level
All Single-Word A1 Lemmas Longer Than 12 Letters
idcefr_levellemmalemma_length
26A1inrikesminister15
27A1inrikespolitik14
61A1Storbritannien14
78A1utbildningsminister19
480A1internationell14
728A1förutsättning13
1052A1grundläggande13
1140A1antingen…eller14
1346A1arbetsmarknad13

What’s Next?

I plan to continue exploring the Swedish Kelly list dataset. Now, rather than brainstorming what to build with the dataset, I’m considering ways to extend it. The first item on my list is creating a new field for lemmas’ spelling and stylistic variants.

Resources

If you enjoyed the read, check out another post or subscribe to the RSS feed.