Dataset Viewer
Auto-converted to Parquet Duplicate
sentence
stringlengths
13
241
word
stringlengths
1
20
label
stringclasses
3 values
Sir ap next Saturday ko available hu ge
Sir
ENG
Sir ap next Saturday ko available hu ge
ap
URD
Sir ap next Saturday ko available hu ge
next
ENG
Sir ap next Saturday ko available hu ge
Saturday
ENG
Sir ap next Saturday ko available hu ge
ko
URD
Sir ap next Saturday ko available hu ge
available
ENG
Sir ap next Saturday ko available hu ge
hu
URD
Sir ap next Saturday ko available hu ge
ge
URD
Sir 1st august ko ya august ki kisi bhi date ko
Sir
ENG
Sir 1st august ko ya august ki kisi bhi date ko
1st
ENG
Sir 1st august ko ya august ki kisi bhi date ko
august
ENG
Sir 1st august ko ya august ki kisi bhi date ko
ko
URD
Sir 1st august ko ya august ki kisi bhi date ko
ya
URD
Sir 1st august ko ya august ki kisi bhi date ko
august
ENG
Sir 1st august ko ya august ki kisi bhi date ko
ki
URD
Sir 1st august ko ya august ki kisi bhi date ko
kisi
URD
Sir 1st august ko ya august ki kisi bhi date ko
bhi
URD
Sir 1st august ko ya august ki kisi bhi date ko
date
ENG
Sir 1st august ko ya august ki kisi bhi date ko
ko
URD
Meeting ka bad open kro ga
Meeting
ENG
Meeting ka bad open kro ga
ka
URD
Meeting ka bad open kro ga
bad
URD
Meeting ka bad open kro ga
open
ENG
Meeting ka bad open kro ga
kro
URD
Meeting ka bad open kro ga
ga
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
Last
ENG
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
time
ENG
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
bhi
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
ye
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
mne
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
bataya
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
tha
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
apko
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
screen
ENG
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
blank
ENG
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
hojate
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
chlta
URD
Last time bhi ye mne bataya tha apko screen blank hojate chlta nhi
nhi
URD
Thek hai rakh lo ap
Thek
URD
Thek hai rakh lo ap
hai
URD
Thek hai rakh lo ap
rakh
URD
Thek hai rakh lo ap
lo
URD
Thek hai rakh lo ap
ap
URD
Zainab apky pas cash hoga
Zainab
URD
Zainab apky pas cash hoga
apky
URD
Zainab apky pas cash hoga
pas
URD
Zainab apky pas cash hoga
cash
ENG
Zainab apky pas cash hoga
hoga
URD
Zainab mehndi hai apky pas
Zainab
URD
Zainab mehndi hai apky pas
mehndi
URD
Zainab mehndi hai apky pas
hai
URD
Zainab mehndi hai apky pas
apky
URD
Zainab mehndi hai apky pas
pas
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
Mai
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
to
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
pechla
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
bhi
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
pura
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
week
ENG
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
kaam
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
ho
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
gai
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
hu
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
non
ENG
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
stop
ENG
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
agy
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
bhi
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
msla
URD
Mai to pechla bhi pura week kaam ho gai hu non stop agy bhi msla ni
ni
URD
Pehly krni uski brdy 31st ko hai wyse to
Pehly
URD
Pehly krni uski brdy 31st ko hai wyse to
krni
URD
Pehly krni uski brdy 31st ko hai wyse to
uski
URD
Pehly krni uski brdy 31st ko hai wyse to
brdy
ENG
Pehly krni uski brdy 31st ko hai wyse to
31st
ENG
Pehly krni uski brdy 31st ko hai wyse to
ko
URD
Pehly krni uski brdy 31st ko hai wyse to
hai
URD
Pehly krni uski brdy 31st ko hai wyse to
wyse
URD
Pehly krni uski brdy 31st ko hai wyse to
to
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
Kl
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
raat
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
bhi
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
insta
ENG
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
py
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
memes
ENG
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
Dekh
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
ky
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
has
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
rhi
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
thi
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
pagaloon
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
ki
URD
Kl raat bhi insta py memes Dekh ky has rhi thi pagaloon ki tarhann
tarhann
URD
Aj pata chala comments par triple click karna se reply hota ha
Aj
URD
Aj pata chala comments par triple click karna se reply hota ha
pata
URD
Aj pata chala comments par triple click karna se reply hota ha
chala
URD
Aj pata chala comments par triple click karna se reply hota ha
comments
ENG
Aj pata chala comments par triple click karna se reply hota ha
par
URD
Aj pata chala comments par triple click karna se reply hota ha
triple
ENG
Aj pata chala comments par triple click karna se reply hota ha
click
ENG
Aj pata chala comments par triple click karna se reply hota ha
karna
URD
End of preview. Expand in Data Studio

Roman Urdu–English Code-Switching Dataset

Dataset Description

This dataset contains 1,901 sentences and 21,370 word-level language labels, built to capture how Roman Urdu and English are naturally mixed together in everyday Pakistani online communication.

Code-switching — blending two languages within a single sentence — is how the vast majority of Pakistanis actually write and speak online, on platforms like Twitter/X, Facebook, YouTube, Reddit, and WhatsApp. A sentence like "Aaj mera mood nahi hai for anything" is completely normal in this context, but most existing NLP models and datasets are built around monolingual text and don't handle this kind of mixing well. This dataset was created to help close that gap by providing real, word-level labelled examples that a model could learn from.

Motivation

Standard language identification and NLP tools typically assume a sentence is written in a single language. Roman Urdu–English code-switching breaks that assumption at the word level, not just the sentence level — a single sentence can contain both languages, sometimes even within back-to-back words. This dataset supports building and evaluating models (e.g. token classifiers, chatbots, sentiment analysis systems, or content moderation tools) that need to correctly interpret this kind of everyday, informal, mixed-language text.

How the Data Was Collected

Sentences were gathered from real, naturally occurring Roman Urdu–English text found in Pakistani online spaces, combined with existing public Roman Urdu datasets. Specifically, the dataset combines:

  • Personally collected and hand-labelled sentences, sourced from real online conversations and posts
  • Sentences drawn from existing public Roman Urdu text sources

All sentences were deduplicated across sources to avoid repetition, then labelled at the word level by hand.

Labels

Each individual word in a sentence is tagged with one of three labels describing its language:

Label Meaning Example
ENG The word is English busy, meetings, feeling
URD The word is Urdu, written in Roman script Aaj, ka, bohot, nahi
MIX The word blends both languages within itself e.g. compound/hybrid coinages

Dataset Structure

The dataset is provided as a single flat CSV file (dataset_labels.csv) with three columns:

  • sentence — the full original sentence, unmodified
  • word — one individual word taken from that sentence
  • label — the language label for that specific word (ENG, URD, or MIX)

Because labelling happens at the word level, each sentence appears across multiple rows — one row per word it contains. To reconstruct a sentence's full word-by-word labelling, filter the CSV by matching sentence values.

Example

For the sentence "Aaj ka din bohot busy tha":

sentence word label
Aaj ka din bohot busy tha Aaj URD
Aaj ka din bohot busy tha ka URD
Aaj ka din bohot busy tha din URD
Aaj ka din bohot busy tha bohot URD
Aaj ka din bohot busy tha busy ENG
Aaj ka din bohot busy tha tha URD

Dataset Statistics

  • Sentences: 1,901
  • Total word-level entries: 21,370
  • Label distribution: URD-majority, with a substantial share of English tokens and a small number of blended (MIX) tokens, reflecting realistic code-switching patterns rather than an artificially balanced split.

Intended Uses

This dataset is intended for:

  • Training or evaluating token-level language identification models on Roman Urdu–English text
  • Supporting downstream NLP tasks on code-switched South Asian social media text, such as sentiment analysis, chatbots, and content moderation
  • Educational and research use in low-resource and code-switching NLP

Limitations

  • The dataset reflects informal, conversational online text and may not generalize to formal writing.
  • Label decisions for ambiguous or hybrid words were made manually and may reflect some subjectivity, as is common in code-switching annotation.
  • The dataset size, while sufficient for many use cases, is modest compared to large monolingual corpora — it is best suited for fine-tuning or evaluation rather than training large models from scratch.

License

This dataset is released under the CC BY 4.0 license.

Author

Zainab Binte Khalid — Code Saviours SI-26, Project 2

Downloads last month
23