Guevara Gil, Juan AntonioCasas Mas, BelénRobles Morales, José Manuel2025-09-052025-09-052024-10-14Guevara, J. A., Casas-Mas, B., & Robles, J. M. (2024). Polarization and hate speech based on fuzzy logic and transformers: the case of the 2023 Spanish general elections. Mathematical Population Studies, 31(4), 289–307. https://doi.org/10.1080/08898480.2024.241233710.1080/08898480.2024.2412337https://hdl.handle.net/20.500.14352/123744Affective polarization in the digital debate of the Spanish presidential election campaign (2023), following the sudden call of the Spanish president on July 23, was measured. Using transformers, topics were detected, and sentiment analysis techniques were applied in the political debate during the elections to measure the emotional valence of the debate. The topics that dominate most of the debate are Candidates (n1 = 17170) and Opposition (n3 = 15327). These topics also show the highest typical polarization deviances. Based on affective polarization, a polarization measure (JDJ) grounded in the fuzzy sets was applied. The topic activism has the highest polarization value, while the topic of voting has the lowest. This analysis highlights a dichotomy that defines the Spanish political reality: the positive image of conventional political participation in the face of the rejection of collective action processes.engAttribution-NonCommercial 4.0 Internationalhttp://creativecommons.org/licenses/by-nc/4.0/Polarization and hate speech based on fuzzy logic and transformers: the case of the 2023 Spanish general electionsjournal articlehttps://doi.org/10.1080/08898480.2024.2412337https://www.tandfonline.com/doi/full/10.1080/08898480.2024.2412337embargoed access316Affective polarizationFuzzy setsHate speechSentiment analysisTopic modellingTransformersSociología63 Sociología