Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-06T09:25:51.022Z Has data issue: false hasContentIssue false

Fine-grained analysis of language varieties and demographics

Published online by Cambridge University Press:  10 March 2020

Francisco Rangel*
Affiliation:
Pattern Recognition and Human Language Technologies, Universitat Politècnica de València, Spain
Paolo Rosso
Affiliation:
Pattern Recognition and Human Language Technologies, Universitat Politècnica de València, Spain
Wajdi Zaghouani
Affiliation:
College of Humanities and Social Sciences, Hamad Bin Khalifa University, Ar-Rayyan, Qatar
Anis Charfi
Affiliation:
Information Systems Program, Carnegie Mellon University in Qatar, Ar-Rayyan, Qatar
*
*Corresponding author. E-mail: kico.rangel@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

The rise of social media empowers people to interact and communicate with anyone anywhere in the world. The possibility of being anonymous avoids censorship and enables freedom of expression. Nevertheless, this anonymity might lead to cybersecurity issues, such as opinion spam, sexual harassment, incitement to hatred or even terrorism propaganda. In such cases, there is a need to know more about the anonymous users and this could be useful in several domains beyond security and forensics such as marketing, for example. In this paper, we focus on a fine-grained analysis of language varieties while considering also the authors’ demographics. We present a Low-Dimensionality Statistical Embedding method to represent text documents. We compared the performance of this method with the best performing teams in the Author Profiling task at PAN 2017. We obtained an average accuracy of 92.08% versus 91.84% for the best performing team at PAN 2017. We also analyse the relationship of the language variety identification with the authors’ gender. Furthermore, we applied our proposed method to a more fine-grained annotated corpus of Arabic varieties covering 22 Arab countries and obtained an overall accuracy of 88.89%. We have also investigated the effect of the authors’ age and gender on the identification of the different Arabic varieties, as well as the effect of the corpus size on the performance of our method.

Figure 0

Figure 1. Portuguese subset of the PAN-AP’17 represented with the avg(W) feature of LDSE. The x-axis represents each of the terms in the corpus. The Y-axis represents the average weight for each term in Brazilian (blue) or Portuguese (red) varieties.

Figure 1

Table 1. PAN-AP’17 corpus, covering four languages with their corresponding varieties and the cities selected as representative of such varieties

Figure 2

Table 2. ARAP-Tweet corpus: language varieties and regions

Figure 3

Figure 2. Comparative results of the three best performing teams in the Author Profiling shared task at PAN 2017 versus LDSE. The best performing team (Basile et al.2017) obtained the highest result in Arabic and Spanish. The second best performing team (Tellez et al.2017) obtained the highest result in English and Portuguese.

Figure 4

Table 3. Significance (p-values) when comparing LDSE results with the three best performing teams in the Author Profiling shared task at PAN 2017 (*0.05; **0.01)

Figure 5

Figure 3. Confusion matrix for Arabic varieties with LDSE on the PAN-AP’17 corpus.

Figure 6

Figure 4. Confusion matrix for English varieties for LDSE on the PAN-AP’17 corpus.

Figure 7

Figure 5. Confusion matrix for Portuguese varieties for LDSE on the PAN-AP’17 corpus.

Figure 8

Figure 6. Confusion matrix for Spanish varieties for LDSE on the PAN-AP’17 corpus.

Figure 9

Table 4. Difference between highest and lowest accuracies per variety language, both for the best participant at PAN in that language and LDSE. The last column shows the difference between them (* indicates a significant difference)

Figure 10

Table 5. Language variety identification accuracy per gender (* indicates a significant difference) comparing LDSE to the average of all the systems at PAN

Figure 11

Table 6. Language variety identification accuracy per gender and language (* indicates a significant difference) comparing LDSE to the best performing system at PAN

Figure 12

Figure 7. Percentage of errors per gender for each language variety (PAN-AP’17 corpus).

Figure 13

Figure 8. Accuracy obtained by LDSE with five different machine learning classifiers on the ARAP-Tweet corpus.

Figure 14

Figure 9. Confusion matrix for Arabic varieties for LDSE on the ARAP-Tweet corpus.

Figure 15

Table 7. Distribution of the errors depending on the authors’ age and gender (ARAP-Tweet corpus)

Figure 16

Figure 10. Distribution of the errors depending on the authors’ age and gender (ARAP-Tweet corpus).

Figure 17

Figure 11. Percentage of errors per age and gender for each language variety (ARAP-Tweet corpus).

Figure 18

Figure 12. Accuracy when the number of tweets increases (ARAP-Tweet corpus).

Figure 19

Figure 13. Accuracy improvement for each increment in the number of tweets per user in steps of 100 (ARAP-Tweet corpus).

Figure 20

Figure 14. Accuracy when the number of tweets per user decreases (ARAP-Tweet corpus).