AI-Driven Comparative Analysis of Ethical Dilemmas and Character Conflicts in Indian English Literature Using Natural Language Processing
Revu Sravani RojaAssistant Professor, Department of English, Aditya University, Surampalem, Andhra Pradesh, India. sravanirojar@adityauniversity.in0009-0005-6583-6102
Dr.K. SuvarnalakshmiAssistant Professor, Department of English, Aditya University, Surampalem, Andhra Pradesh, India. suvarnalakshmik@adityauniversity.in0000-0001-5151-6996
Keywords: AI-Driven Literary Analysis, Natural Language Processing, Ethical Dilemmas, Character Conflict, Indian English Literature, Transformer Embeddings, Topic Modelling.
Abstract
Ethical dilemmas and character conflicts in Indian English literature are traditionally studied by close reading, which does not allow making systematized comparisons on larger scale corpora. This research introduces EthiCon-NLP, an AI-based method to measure and compare the ethical dilemmas and character conflicts in novels written by Khushwant Singh, Vikram Seth, and Bharati Mukherjee. The method uses RoBERTa contextual embeddings, LDA topic features, and emotion features based on lexicons via the gated fusion layer to classify texts in six ethical dilemmas categories. The network of character co-occurrences is utilized for the creation of a Character Conflict Index, and Jensen-Shannon divergence and the Kruskal-Wallis test are employed to make a comparative analysis. The corpus includes 11 novels with total amount of 1,380 thousand words, 3,600 annotated texts (Cohen’s kappa of 0.84). The accuracy rate for the suggested model was 90.2%, a macro F1 score of 90.1%, a Cohen’s Kappa coefficient of 0.881, and an AUC of 0.981, which were better compared to TF-IDF with SVM (accuracy of 72.4%), BiLSTM with GloVe (77.6%), and finetuned RoBERTa (86.1%). Ablation study revealed that removing topic features resulted in the drop of F1-score by 2.9 points, while removing class-weighted loss caused the drop of F1-score by 3.7 points. Comparative analysis revealed that works of Singh feature the topic of justice vs violence (31%), while works of Seth are about the topics of duty vs desire (27%) and tradition vs modernity (24%), and works of Mukherjee are about the topics of identity/belonging (33%). The mean Character Conflict Index was 0.46 for Singh, 0.41 for Mukherjee, and 0.29 for Seth (Kruskal-Wallis H = 41.7, p < 0.001). These results prove that transformer-based natural language processing yields replicable and interpretable findings that help understand psychological/ethical conflict within Indian English literature.