Computational Analysis of Racial Identity Representation in Mohsin Hamid’s The Last White Man Using Natural Language Processing
U. SivasakthiResearch Scholar, Department of English, Karpagam Academy of Higher Education, Coimbatore, Tamil Nadu, India. sakthiviolet10@gmail.com0009-0007-2529-4657
Dr. Shobha RamaswamyResearch Supervisor, Department of English, Karpagam Academy of Higher Education, Coimbatore, Tamil Nadu, India. ramaswamy.shobha@gmail.com0000-0003-2329-3400
A. Jebamalai RobinsonDepartment of Cyber Security, School of Applied Science, Faculty of Liberal Arts and Business Studies, SRM IST, Ramapuram, Chennai, Tamil Nadu, India. jebamala@srmist.edu.in 0000-0001-7438-2599
Dr.G. PremkumarProfessor, Department of Radio Diagnosis, Meenakshi Medical College Hospital & Research Institute, Meenakshi Academy of Higher Education and Research, Enathur, Kanchipuram, Tamil Nadu, India. premku@maher.ac.in0009-0007-0377-8618
G. Simi MargaratProfessor, Department of Information Technology, Agni College of Technology, Thazhambur, Chennai, Tamil Nadu, India. simimargaratphd@gmail.com0000-0002-7666-4263
J. RajiniAssociate Professor, Department of English, Kongu Engineering College, Erode, Tamil Nadu, India. rajinimoorthydd@gmail.com0000-0002-5080-7545
Keywords: Computational Literary Analysis, Racial Identity, Natural Language Processing, Perspective-Aware Sentiment, Transformer Classification, Explainable Text Analytics, Mohsin Hamid.
Abstract
Racial identity in fiction is communicated through appearance, status, fear, exclusion, and belonging, and in computational work is reduced to word counts and raw sentiment scores. This paper calls for a perspective-driven NLP pipeline for the analysis of racial identity representation in Mohsin Hamid's book The Last White Man (2022). The pipeline splits the novel into 15 units, labels the sentences by four perceptual character groups, identifies lexical features, uses a context-window transformer to encode the sentences, uses a context-weighted loss for classification of the seven theme categories, and employs a depiction flag to distinguish between depicted and endorsed prejudice. Evaluation is based on six metrics, bootstrapping intervals, an ablation study, and double annotation. The proposed perspective-aware NLP model achieves 0.86 accuracy and 0.84 macro-F1 in the empirical configuration (35,000 words, 2,100 sentences, 1,200 gold-annotated sentences), which outperforms the lexicon baseline (0.53), TF-IDF and logistic regression (0.69), and fine-tuned BERT (0.78). The removal of the context window reduces the macro-F1 by five points, the highest ablation loss. The highest 'appearance rate' (9.8) and 'transformation rate' (10.6) are for transforms, or characters who have a dark skin tone at their starting point; and the highest 'belonging rate' is for dark-skinned characters who are dark-skinned at their starting point (5.6). There is a significant difference between groups (Kruskal–Wallis H = 40.9, p < 0.001, ε² = 0.69) with the highest adjusted negativity score for collective voices. The agreement between the annotators is κ = 0.80. All values reported are calculated from an authorized copy of the text. The specification includes code, a codebook, a documented parameter set, and an error-audit procedure for replication. The framework is a supplement to close reading.