Detection of changes in literary writing style using N-grams as style markers and supervised machine learning

被引:3
|
作者
Rios-Toledo, German [1 ]
Francisco Posadas-Duran, Juan Pablo [2 ]
Sidorov, Grigori [2 ]
Alejandro Castro-Sanchez, Noe [3 ]
机构
[1] Tecnol Nacl Mexico TecNM, Campus Tuxtla Gutierrez, Chiapas, Mexico
[2] Inst Politecn Nacl IPN, Ciudad De Mexico, Mexico
[3] Ctr Nacl Invest & Desarrollo Tecnol CENIDET, Tecnol Nacl Mexico TecNM, Cuernavaca, Morelos, Mexico
来源
PLOS ONE | 2022年 / 17卷 / 07期
关键词
D O I
10.1371/journal.pone.0267590
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
The analysis of an author's writing style implies the characterization and identification of the style in terms of a set of features commonly called linguistic features. The analysis can be extrinsic, where the style of an author can be compared with other authors, or intrinsic, where the style of an author is identified through different stages of his life. Intrinsic analysis has been used, for example, to detect mental illness and the effects of aging. A key element of the analysis is the style markers used to model the author's writing patterns. The style markers should handle diachronic changes and be thematic independent. One of the most commonly used style marker in extrinsic style analysis is n-gram. In this paper, we present the evaluation of traditional n-grams (words and characters) and dependency tree syntactic n-grams to solve the task of detecting changes in writing style over time. Our corpus consisted of novels by eleven English-speaking authors. The novels of each author were organized chronologically from the oldest to the most recent work according to the date of publication. Subsequently, two stages were defined: initial and final. In each stage three novels were assigned, novels of the initial stage corresponded to the oldest and those at the final stage to the most recent novels. To analyze changes in the writing style, novels were characterized by using four types of n-grams: characters, words, Part-Of-Speech (POS) tags and syntactic relations n-grams. Experiments were performed with a Logistic Regression classifier. Dimension reduction techniques such as Principal Component Analysis (PCA) and Latent Semantic Analysis (LSA) algorithms were evaluated. The results obtained with the different n-grams indicated that all authors presented significant changes in writing style over time. In addition, representations using n-grams of syntactic relations have achieved competitive results among different authors.
引用
收藏
页数:24
相关论文
共 50 条
  • [1] Identification of changes in literary writing style using machine learning
    Rios-Toledo, German
    Sidorov, Grigori
    Castro-Sanchez, Noe Alejandro
    Posadas-Duran, Juan-Pablo
    [J]. ONOMAZEIN, 2019, (46): : 102 - 128
  • [2] Complete Syntactic N-grams as Style Markers for Authorship Attribution
    Posadas-Duran, Juan-Pablo
    Sidorov, Grigori
    Batyrshin, Ildar
    [J]. HUMAN-INSPIRED COMPUTING AND ITS APPLICATIONS, PT I, 2014, 8856 : 9 - 17
  • [3] Musical Style Identification with n-Grams and Neural Networks
    Cruz-Alcazar, Pedro P.
    Castro-Bleda, Maria J.
    [J]. PROGRESS IN PATTERN RECOGNITION, IMAGE ANALYSIS AND APPLICATIONS, PROCEEDINGS, 2008, 5197 : 461 - +
  • [4] We Will Know Them by Their Style: Fake News Detection Based on Masked N-Grams
    Perez-Santiago, Jennifer
    Villasenor-Pineda, Luis
    Montes-y-Gomez, Manuel
    [J]. PATTERN RECOGNITION, MCPR 2022, 2022, 13264 : 245 - 254
  • [5] IN SEARCH OF LEXICAL DISCRIMINATORS OF DEFINITION STYLE: COMPARING DICTIONARIES THROUGH N-GRAMS
    Kaminski, Mariusz Piotr
    [J]. INTERNATIONAL JOURNAL OF LEXICOGRAPHY, 2016, 29 (04) : 403 - 423
  • [6] Plagiarism Detection Using Stopword n-grams
    Stamatatos, Efstathios
    [J]. JOURNAL OF THE AMERICAN SOCIETY FOR INFORMATION SCIENCE AND TECHNOLOGY, 2011, 62 (12): : 2512 - 2527
  • [7] Spam detection using character N-grams
    Kanaris, Ioannis
    Kanaris, Konstantinos
    Stamatatos, Efstathios
    [J]. ADVANCES IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2006, 3955 : 95 - 104
  • [8] Clone Detection for Ecore Metamodels using N-grams
    Babur, Onder
    [J]. PROCEEDINGS OF THE 6TH INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT, 2018, : 411 - 419
  • [9] Embedded malware detection using Markov n-grams
    Shafiq, M. Zubair
    Khayam, Syed Ali
    Farooq, Muddassar
    [J]. DETECTION OF INTRUSIONS AND MALWARE, AND VULNERABILITY ASSESSMENT, 2008, 5137 : 88 - +
  • [10] Identifying the Dominant Language of Web Page using Supervised N-grams
    Ng, Choon-Ching
    Liew, Siau-Chuin
    Hussin, Wan Muhammad Syahrir Wan
    Herawan, Tutut
    [J]. 2012 INTERNATIONAL CONFERENCE ON ADVANCED COMPUTER SCIENCE APPLICATIONS AND TECHNOLOGIES (ACSAT), 2012, : 344 - 348