Kppwdfgu1 Adedoyin00 commited on
Commit
41c5709
·
0 Parent(s):

Duplicate from Adedoyin00/yoruba-pronoun-etiquette

Browse files

Co-authored-by: Adedoyin Christianah Bamigbala <Adedoyin00@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
61
+ yoruba_pronoun_etiquette.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - yo
4
+ license: other
5
+ pretty_name: Yoruba Honorific Pronoun Etiquette Benchmark
6
+ size_categories:
7
+ - 1K\<n\<10K
8
+ tags:
9
+ - yoruba
10
+ - linguistics
11
+ - pragmatics
12
+ - politeness
13
+ - honorifics
14
+ - pronouns
15
+ - low-resource-language
16
+ - african-languages
17
+ - llm-evaluation
18
+ - cultural-alignment
19
+ ---
20
+
21
+ # Yoruba Honorific Pronoun Etiquette Benchmark
22
+
23
+ ## Overview
24
+
25
+ This dataset is a Yoruba-language benchmark focused on **honorific
26
+ pronouns, politeness markers, and socially appropriate pronoun
27
+ selection**.
28
+
29
+ The project is motivated by the observation that politeness is
30
+ culturally and socially grounded. In Yoruba, choices among second-person
31
+ forms can encode age, social status, familiarity, deference, and
32
+ interpersonal relationships. An LLM may produce a grammatically possible
33
+ Yoruba form while still failing to preserve the culturally appropriate
34
+ level of respect.
35
+
36
+ The aim of this project is therefore not only to test Yoruba language
37
+ generation, but to evaluate whether a language model can maintain
38
+ **socially appropriate Yoruba pronoun choices** when speaker-addressee
39
+ relationships and discourse contexts change.
40
+
41
+ ## Dataset contents
42
+
43
+ The repository contains both the raw/source dataset and the
44
+ AdaptLab-adapted dataset, together with benchmark and error-analysis
45
+ outputs.
46
+
47
+ ### Main datasets
48
+
49
+ - `yoruba_pronoun_etiquette.csv` --- raw/source dataset.
50
+ - `Yoruba_5000_AdaptLab_READY.csv` --- 5,000-row AdaptLab-adapted
51
+ dataset.
52
+
53
+ ### Benchmark outputs
54
+
55
+ - `yoruba_pronoun_benchmark_clean.csv` --- cleaned benchmark data.
56
+ - `yoruba_pronoun_benchmark_v4.csv` --- V4 benchmark results.
57
+ - `yoruba_pronoun_results_v4.csv` --- pronoun-level results.
58
+ - `yoruba_relationship_results_v4.csv` --- results grouped by social
59
+ relationship.
60
+ - `yoruba_pronoun_error_matrix_v4.csv` --- pronoun error matrix.
61
+
62
+ ## Raw dataset
63
+
64
+ The raw dataset contains controlled Yoruba examples designed around
65
+ pronoun etiquette and social relationships. The examples encode
66
+ contextual information such as:
67
+
68
+ - speaker/addressee relationship;
69
+ - relative age or social position;
70
+ - familiarity;
71
+ - communicative situation;
72
+ - candidate pronoun forms;
73
+ - target politeness/honorific interpretation.
74
+
75
+ The raw dataset is a controlled dataset rather than a collection of
76
+ naturally occurring conversations. This distinction is important when
77
+ interpreting the results.
78
+
79
+ ## Adapted dataset
80
+
81
+ The adapted dataset was produced using **AdaptLab**. The adaptation
82
+ process reformulated the original examples into model-oriented
83
+ prompt/completion examples while retaining the central linguistic and
84
+ pragmatic task.
85
+
86
+ The adapted data includes Yoruba contexts in which the model is required
87
+ to select or produce an appropriate form based on the relationship
88
+ between interlocutors.
89
+
90
+ Examples include contrasts involving relationships such as:
91
+
92
+ - peer → peer;
93
+ - younger → elder;
94
+ - younger → older visitor;
95
+ - younger → leader;
96
+ - student → teacher;
97
+ - student → professor;
98
+ - adult → child;
99
+ - younger → family head;
100
+ - younger → Babaláwo;
101
+ - close colleagues;
102
+ - friends;
103
+ - siblings/close family.
104
+
105
+ ## Annotation scheme
106
+
107
+ The benchmark treats pronoun selection as a pragmatic
108
+ classification/evaluation problem rather than purely a surface-form
109
+ matching task.
110
+
111
+ The relevant annotation dimensions include:
112
+
113
+ 1. **Social relationship** --- who is speaking to whom.
114
+ 2. **Discourse context** --- the situation in which the utterance
115
+ occurs.
116
+ 3. **Candidate forms** --- the pronoun alternatives presented to the
117
+ model.
118
+ 4. **Gold pronoun** --- the expected socially appropriate form.
119
+ 5. **Adapted pronoun** --- the form produced/selected after adaptation.
120
+ 6. **Politeness/honorific function** --- whether the form reflects
121
+ deference, solidarity, or a non-honorific usage.
122
+
123
+ The project distinguishes forms including `ìwọ`, `ẹ`, `ẹ̀yin`, `yín`,
124
+ `o`, `ọ`, and `rẹ` where they occur in the benchmark.
125
+
126
+ ## Cultural and linguistic motivation
127
+
128
+ Politeness is treated in this project as a culturally situated component
129
+ of language use. Yoruba honorific usage cannot be reduced to a simple
130
+ grammatical rule because social variables such as age, status,
131
+ familiarity, and relationship influence appropriate forms.
132
+
133
+ The benchmark therefore deliberately places pronoun choices inside
134
+ social contexts. This is intended to test whether an LLM preserves
135
+ culturally meaningful distinctions rather than simply generating a
136
+ locally grammatical Yoruba expression.
137
+
138
+ The project follows the linguistic literature supplied with the
139
+ research, including work discussing Yoruba honorific pronouns, age,
140
+ social status, familiarity, and the relationship between politeness and
141
+ cultural norms.
142
+
143
+ ## AdaptLab and model adaptation
144
+
145
+ AdaptLab was used as the dataset adaptation tool.
146
+
147
+ The adapted dataset was subsequently used in model
148
+ adaptation/fine-tuning experiments. The AutoScientist workflow was used
149
+ for the training experiment.
150
+
151
+ The reported training configuration included:
152
+
153
+ - base model: `meta-llama/Llama-4-Scout-17B-16E-Instruct`;
154
+ - training method: supervised fine-tuning (SFT);
155
+ - parameter-efficient training: LoRA;
156
+ - LoRA rank: 64;
157
+ - LoRA alpha: 128;
158
+ - learning rate: 0.0001;
159
+ - epochs: 4;
160
+ - batch size: max;
161
+ - learning-rate scheduler: cosine;
162
+ - warmup ratio: 0.03;
163
+ - weight decay: 0.02;
164
+ - dropout: 0;
165
+ - training on inputs: false.
166
+
167
+ The trained model was named:
168
+
169
+ `adaption_yoruba_pronoun_etiquette`
170
+
171
+ ## Benchmark methodology
172
+
173
+ The final V4 benchmark independently compares the adapted model output
174
+ with the expected/gold pronoun.
175
+
176
+ From the V4 benchmark run:
177
+
178
+ - total source rows inspected: 27,780;
179
+ - relationships extracted: 2,096;
180
+ - gold pronouns identified: 2,093;
181
+ - adapted pronouns identified: 2,066;
182
+ - valid benchmark cases: 2,064;
183
+ - correct predictions: 1,705;
184
+ - incorrect predictions: 359;
185
+ - exact pronoun accuracy: **82.61%**.
186
+
187
+ The benchmark also reports results by social relationship and by gold
188
+ pronoun, together with an error matrix.
189
+
190
+ ## Key benchmark findings
191
+
192
+ Overall exact pronoun accuracy was **82.61%**.
193
+
194
+ Performance was strongest for several explicitly hierarchical
195
+ relationships. For example:
196
+
197
+ - younger → elder: 98.94%;
198
+ - adult → child: 100%;
199
+ - younger → older visitor: 100%;
200
+ - younger → elder neighbour: 100%;
201
+ - younger → leader: 100%;
202
+ - younger → older man: 100%;
203
+ - younger → older woman: 100%;
204
+ - younger → family head: 100%;
205
+ - student → teacher: 100%;
206
+ - student → professor: 100%;
207
+ - younger → Babaláwo: 100%.
208
+
209
+ The largest relationship category was peer → peer, with 1,767 valid
210
+ cases and 80.08% accuracy. This is important because peer interactions
211
+ create greater ambiguity between solidarity/informal forms and honorific
212
+ forms.
213
+
214
+ By gold pronoun, the V4 benchmark reported:
215
+
216
+ - `ìwọ`: 72.47%;
217
+ - `o`: 87.38%;
218
+ - `ọ`: 81.05%;
219
+ - `ẹ̀yin`: 97.73%;
220
+ - `yín`: 100%;
221
+ - `ẹ`: 97.53%;
222
+ - `rẹ`: 100%.
223
+
224
+ The benchmark also identified recurring confusions among candidate
225
+ forms, especially in peer-to-peer contexts.
226
+
227
+ ## Error analysis
228
+
229
+ The principal error pattern is not simply random Yoruba generation. Many
230
+ errors involve choosing a different candidate pronoun from the set
231
+ supplied in the prompt.
232
+
233
+ For example, the V4 error analysis contains cases where:
234
+
235
+ - gold = `ọ`, adapted = `ẹ`;
236
+ - gold = `ìwọ`, adapted = `yín`;
237
+ - gold = `o`, adapted = `ẹ`;
238
+ - gold = `ìwọ`, adapted = `ẹ̀yin`.
239
+
240
+ The concentration of errors in peer → peer cases suggests that socially
241
+ less hierarchical interactions can be more difficult to disambiguate
242
+ than strongly marked age/status relationships.
243
+
244
+ This supports the central research motivation: **culturally appropriate
245
+ Yoruba politeness requires sensitivity to social context, not only
246
+ lexical or grammatical competence.**
247
+
248
+ ## Intended use
249
+
250
+ This dataset is intended for:
251
+
252
+ - evaluation of Yoruba-capable language models;
253
+ - research on cultural and pragmatic alignment;
254
+ - low-resource African-language NLP;
255
+ - evaluation of honorific and politeness-sensitive generation;
256
+ - research into socially grounded pronoun selection;
257
+ - benchmarking model adaptation methods.
258
+
259
+ It should not be treated as a comprehensive representation of all Yoruba
260
+ speakers, dialects, communities, or politeness practices.
261
+
262
+ ## Limitations
263
+
264
+ 1. The raw benchmark data are controlled/constructed examples rather
265
+ than a corpus of naturally occurring conversations.
266
+ 2. Yoruba politeness is context-sensitive, and the benchmark cannot
267
+ represent every possible social interaction.
268
+ 3. Some pronoun forms are multifunctional and may require discourse
269
+ information beyond a short prompt.
270
+ 4. Social categories such as age, status, familiarity, and relationship
271
+ may overlap in real interaction.
272
+ 5. Benchmark accuracy should therefore be interpreted as performance on
273
+ the defined evaluation task, not as a complete measure of Yoruba
274
+ language competence.
275
+ 6. Cultural and pragmatic judgments may vary across speakers and
276
+ communities.
277
+
278
+ ## Reproducibility
279
+
280
+ The repository provides the raw and adapted datasets together with
281
+ benchmark outputs so that researchers can inspect the transformation and
282
+ reproduce the reported evaluation.
283
+
284
+ The benchmark results were generated with the V4 evaluation pipeline and
285
+ saved as CSV files in this repository.
286
+
287
+ ## Citation
288
+
289
+ If you use this dataset, please cite the associated competition
290
+ submission/research paper:
291
+
292
+ > Bamigbala Christianah Adedoyin. *Yoruba Honorific Pronoun Etiquette:
293
+ > Culturally Grounded Pronoun Adaptation and Benchmarking for LLMs*.
294
+ > 2026.
295
+
296
+ ## Acknowledgement
297
+
298
+ This project was developed as part of an African computational
299
+ linguistics/LLM adaptation research activity focused on improving the
300
+ representation of Yoruba pragmatic and cultural knowledge in language
301
+ models.
Yoruba_5000_AdaptLab_READY.csv ADDED
The diff for this file is too large to render. See raw diff
 
yoruba_pronoun_benchmark_clean.csv ADDED
The diff for this file is too large to render. See raw diff
 
yoruba_pronoun_benchmark_v4.csv ADDED
The diff for this file is too large to render. See raw diff
 
yoruba_pronoun_error_matrix_v4.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ Gold,o,rẹ,yín,Ìwọ,ìwọ,Ẹ,ẹ,ẹ̀yin,ọ
2
+ o,526,0,14,0,0,0,38,24,0
3
+ rẹ,0,14,0,0,0,0,0,0,0
4
+ yín,0,0,84,0,0,0,0,0,0
5
+ ìwọ,0,0,35,1,437,1,84,45,0
6
+ Ẹ̀yin,0,0,0,0,0,0,0,1,0
7
+ ẹ,0,0,0,0,0,0,79,1,1
8
+ ẹ̀yin,0,0,0,0,1,0,1,86,0
9
+ ọ,0,0,27,0,0,0,51,34,479
yoruba_pronoun_etiquette.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31ec935908e1031d36f4a616a1786a2c626e5740a06bd2bf03a1973a7b644c0b
3
+ size 145858133
yoruba_pronoun_results_v4.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ gold_pronoun,samples,correct,accuracy
2
+ ìwọ,603,437,72.4709784411277
3
+ o,602,526,87.37541528239203
4
+ ọ,591,479,81.04906937394247
5
+ ẹ̀yin,88,86,97.72727272727273
6
+ yín,84,84,100.0
7
+ ẹ,81,79,97.53086419753086
8
+ rẹ,14,14,100.0
9
+ Ẹ̀yin,1,0,0.0
yoruba_relationship_results_v4.csv ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ relationship,samples,correct,accuracy
2
+ peer → peer,1767,1415,80.07923033389926
3
+ younger → elder,189,187,98.94179894179894
4
+ adult → child,8,8,100.0
5
+ younger → older visitor,8,8,100.0
6
+ younger → elder neighbour,8,8,100.0
7
+ friends,7,6,85.71428571428571
8
+ younger → leader,7,7,100.0
9
+ siblings/close family,7,6,85.71428571428571
10
+ peers,7,6,85.71428571428571
11
+ younger → older man,7,7,100.0
12
+ younger → older woman,6,6,100.0
13
+ close colleagues,6,6,100.0
14
+ younger → family head,6,6,100.0
15
+ student → professor,5,5,100.0
16
+ student → teacher,5,5,100.0
17
+ younger → Babaláwo,5,5,100.0
18
+ young adult → close friend,4,3,75.0
19
+ adult → familiar child,3,3,100.0
20
+ adult → younger relative,3,3,100.0
21
+ close friends,2,2,100.0
22
+ classmates,2,1,50.0
23
+ siblings/close family — younger sibling,1,1,100.0
24
+ siblings/close family — older sibling,1,1,100.0