Spaces:
Runtime error
Runtime error
updated changes in pro-admin bias verdict
Browse files- checker/internal/bias_analyzer.py +1406 -1423
checker/internal/bias_analyzer.py
CHANGED
|
@@ -1,1423 +1,1406 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Bias Analyzer β Heuristic-based political bias detection + subjectivity scoring
|
| 3 |
-
=================================================================================
|
| 4 |
-
Analyzes Filipino news articles for political bias using:
|
| 5 |
-
- Keyword patterns (left/right/sensational)
|
| 6 |
-
- Philippine political figure sentiment (2025-2026 context)
|
| 7 |
-
- Unsourced claim / "blind item" detection
|
| 8 |
-
- Opinion markers and subjectivity thresholds
|
| 9 |
-
- VADER sentiment scoring
|
| 10 |
-
|
| 11 |
-
Returns: Left-leaning, Right-leaning, Conservative, or Centrist.
|
| 12 |
-
Also flags unsourced claims (chismis / blind item style fake news).
|
| 13 |
-
"""
|
| 14 |
-
|
| 15 |
-
import re
|
| 16 |
-
from textblob import TextBlob
|
| 17 |
-
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
| 18 |
-
|
| 19 |
-
# Shared VADER analyzer instance
|
| 20 |
-
_vader = SentimentIntensityAnalyzer()
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
# ββ Philippine Political Figure Keywords (2025-2026 context) ββββββββββββββββ
|
| 24 |
-
#
|
| 25 |
-
# The Philippine political landscape after 2024 has three main camps:
|
| 26 |
-
# CONSERVATIVE (Duterte faction) β Pro-Duterte, Anti-Marcos, Anti-Leni
|
| 27 |
-
# ADMIN/RIGHT (Marcos faction) β Pro-Marcos admin, critical of Duterte now
|
| 28 |
-
# LIBERAL/LEFT (Leni bloc) β Pro-Leni, Anti-Duterte, Anti-Marcos
|
| 29 |
-
#
|
| 30 |
-
# A CENTRIST does not side with personalities but examines credentials and policy.
|
| 31 |
-
|
| 32 |
-
# Phrases used by/about the DUTERTE FACTION (conservative/nationalist)
|
| 33 |
-
CONSERVATIVE_PRO = [
|
| 34 |
-
"tatay digong",
|
| 35 |
-
"digong",
|
| 36 |
-
"mayor duterte",
|
| 37 |
-
"president duterte",
|
| 38 |
-
"rody duterte",
|
| 39 |
-
"rodrigo duterte",
|
| 40 |
-
"war on drugs works",
|
| 41 |
-
"drug war effective",
|
| 42 |
-
"bong go",
|
| 43 |
-
"sara duterte is right",
|
| 44 |
-
"vp sara",
|
| 45 |
-
"baste duterte",
|
| 46 |
-
"dds",
|
| 47 |
-
"duterte die-hard supporter",
|
| 48 |
-
"pro-duterte",
|
| 49 |
-
"18 marines",
|
| 50 |
-
"federalismo",
|
| 51 |
-
"charter change ni duterte",
|
| 52 |
-
"the dutertes",
|
| 53 |
-
"duterte legacy",
|
| 54 |
-
"pagmamahal sa bansa",
|
| 55 |
-
"du30",
|
| 56 |
-
"DU30",
|
| 57 |
-
"DDS",
|
| 58 |
-
"Tatay Digong",
|
| 59 |
-
"π",
|
| 60 |
-
"ππ΅π",
|
| 61 |
-
"Dilawan",
|
| 62 |
-
"Yellowtard",
|
| 63 |
-
"Lugaw",
|
| 64 |
-
"Lutang",
|
| 65 |
-
"Penoy",
|
| 66 |
-
"Oligarchs",
|
| 67 |
-
"Drug war",
|
| 68 |
-
"Build Build Build",
|
| 69 |
-
"Safety first",
|
| 70 |
-
"Strongman",
|
| 71 |
-
"Disiplina",
|
| 72 |
-
"Bayaran",
|
| 73 |
-
"Presinto",
|
| 74 |
-
"Fake news media",
|
| 75 |
-
"Biased",
|
| 76 |
-
"NPAs",
|
| 77 |
-
"Pula-pula",
|
| 78 |
-
"Aktibista",
|
| 79 |
-
"Woke",
|
| 80 |
-
"Moralista",
|
| 81 |
-
"Elitista",
|
| 82 |
-
"Matapang",
|
| 83 |
-
"Davao",
|
| 84 |
-
"Tapang at Malasakit",
|
| 85 |
-
"May gawa, hindi salita",
|
| 86 |
-
"Solid",
|
| 87 |
-
"Diehard",
|
| 88 |
-
"Puro reklamo",
|
| 89 |
-
"Sumunod na lang",
|
| 90 |
-
"Bakit hindi ka tumakbo?",
|
| 91 |
-
"Ambisyosa",
|
| 92 |
-
"Dating VP",
|
| 93 |
-
"Len-Len",
|
| 94 |
-
"Noynoying",
|
| 95 |
-
"Komunista",
|
| 96 |
-
"Katotohanan",
|
| 97 |
-
"DDS",
|
| 98 |
-
"Digong",
|
| 99 |
-
"Tatay Digong",
|
| 100 |
-
"PRRD",
|
| 101 |
-
"tapang at malasakit",
|
| 102 |
-
"Dutertards", # self-reclaimed by some supporters
|
| 103 |
-
"tokhang",
|
| 104 |
-
"war on drugs",
|
| 105 |
-
"change is coming",
|
| 106 |
-
"federalismo",
|
| 107 |
-
"BBL supporter",
|
| 108 |
-
"Build Build Build",
|
| 109 |
-
"Mindanaoan pride",
|
| 110 |
-
"Davao model",
|
| 111 |
-
"anti-dilawan",
|
| 112 |
-
"dilawan tayo", # used sarcastically against critics
|
| 113 |
-
"presyo ng bigas", # rice price talking point
|
| 114 |
-
"disente daw", # mockery of "decent" critics
|
| 115 |
-
"RP first",
|
| 116 |
-
"sovereign PH",
|
| 117 |
-
"OFW ni Digong",
|
| 118 |
-
"ICC out",
|
| 119 |
-
"ICC biased",
|
| 120 |
-
"CHR useless",
|
| 121 |
-
"media biased", # ABS-CBN franchise issue framing
|
| 122 |
-
"NTF-ELCAC",
|
| 123 |
-
"red-tagging justified",
|
| 124 |
-
"leftist agenda",
|
| 125 |
-
"destabilize",
|
| 126 |
-
"dilawang media",
|
| 127 |
-
"lugaw", # derogatory term for Robredo
|
| 128 |
-
"walang nagawa si Leni",
|
| 129 |
-
"Marcos-Duterte alliance",
|
| 130 |
-
"UniTeam loyalist",
|
| 131 |
-
"Hugpong",
|
| 132 |
-
"PDDS",
|
| 133 |
-
"Katas ng Saudi", # OFW remittance pride narrative
|
| 134 |
-
"drug lord protectors",
|
| 135 |
-
"yellows",
|
| 136 |
-
"Dutertista",
|
| 137 |
-
]
|
| 138 |
-
CONSERVATIVE_ANTI = [
|
| 139 |
-
# Anti-Marcos (used by Duterte faction after their fallout)
|
| 140 |
-
"marcos incompetent",
|
| 141 |
-
"marcos palpak",
|
| 142 |
-
"marcos nagkanulo",
|
| 143 |
-
"ibaba si marcos",
|
| 144 |
-
"marcos ay traydor",
|
| 145 |
-
"marcos nagpalit ng tuktok",
|
| 146 |
-
"marcos dynasty",
|
| 147 |
-
"marcos diktador",
|
| 148 |
-
"bangag",
|
| 149 |
-
"Magnanakaw",
|
| 150 |
-
"BabyM",
|
| 151 |
-
"LBM",
|
| 152 |
-
"Sinungaling",
|
| 153 |
-
"Unity-ng-magnanakaw",
|
| 154 |
-
"Party President",
|
| 155 |
-
"Bangag",
|
| 156 |
-
"Cocaine-user",
|
| 157 |
-
"Dictator junior",
|
| 158 |
-
"Tax evader",
|
| 159 |
-
"Mandaraya",
|
| 160 |
-
"Golden Age (ironic)",
|
| 161 |
-
"Tallano Gold (mocking)",
|
| 162 |
-
"Traveler-in-Chief",
|
| 163 |
-
"Unity-is-scam",
|
| 164 |
-
"Historical distortor",
|
| 165 |
-
"Puppet of Romualdez",
|
| 166 |
-
"Weak leader",
|
| 167 |
-
"Walang nagawa",
|
| 168 |
-
"Incompetent",
|
| 169 |
-
"Flood control scandal",
|
| 170 |
-
"Trillion Peso March",
|
| 171 |
-
"Ill-gotten wealth",
|
| 172 |
-
"Martial law baby",
|
| 173 |
-
"Vlog-president",
|
| 174 |
-
"Absentee leader",
|
| 175 |
-
"Impeachment target",
|
| 176 |
-
"Marcos-crony",
|
| 177 |
-
"BBM-serye",
|
| 178 |
-
"Nepo-baby",
|
| 179 |
-
"Unite-troll",
|
| 180 |
-
"Bagong Pilipinas (mocking)",
|
| 181 |
-
"Maharlika-scam",
|
| 182 |
-
"Rice at 20 pesos (mocking)",
|
| 183 |
-
"Unity-over-justice",
|
| 184 |
-
"Puro party",
|
| 185 |
-
"Walang kusa",
|
| 186 |
-
"Fake diploma",
|
| 187 |
-
"Legacy-washer",
|
| 188 |
-
"Marcos-pa-rin (ironic)"
|
| 189 |
-
# Anti-Leni
|
| 190 |
-
"dilawan",
|
| 191 |
-
"kakampink",
|
| 192 |
-
"kakampwet",
|
| 193 |
-
"hontivirus",
|
| 194 |
-
"trilliling",
|
| 195 |
-
"leni lugaw",
|
| 196 |
-
"yellow army",
|
| 197 |
-
"kakampink talo",
|
| 198 |
-
"leni talo",
|
| 199 |
-
"leni sinungaling",
|
| 200 |
-
"leni bayad",
|
| 201 |
-
"aquino oligarch",
|
| 202 |
-
"oposisyon mapanlinlang",
|
| 203 |
-
"sentenaryo ng laban nila",
|
| 204 |
-
"Lugaw",
|
| 205 |
-
"Lutang",
|
| 206 |
-
"Pinktard",
|
| 207 |
-
"Kakampwet",
|
| 208 |
-
"NPA-sympathizer",
|
| 209 |
-
"Elitista",
|
| 210 |
-
"Matapobre",
|
| 211 |
-
"Moral high grounder",
|
| 212 |
-
"Dilawan",
|
| 213 |
-
"Yellowtard",
|
| 214 |
-
"Fake VP",
|
| 215 |
-
"Puppet of the US",
|
| 216 |
-
"Oligarch-funded",
|
| 217 |
-
"Puro dada",
|
| 218 |
-
"Self-righteous",
|
| 219 |
-
"Woke",
|
| 220 |
-
"Cancel culture",
|
| 221 |
-
"Leni-lenin",
|
| 222 |
-
"Komunista",
|
| 223 |
-
"Pabida",
|
| 224 |
-
"Pa-victim",
|
| 225 |
-
"Len-len",
|
| 226 |
-
"Madumb",
|
| 227 |
-
"Puppet",
|
| 228 |
-
"Lahat na lang mali",
|
| 229 |
-
"Neoliberal",
|
| 230 |
-
"Yellow-bleeding",
|
| 231 |
-
"Manila-centric",
|
| 232 |
-
"Hypocrite",
|
| 233 |
-
"The 1%",
|
| 234 |
-
"Walang alam",
|
| 235 |
-
"Staging photos",
|
| 236 |
-
"PR-driven",
|
| 237 |
-
"Puro puso walang utak",
|
| 238 |
-
"Kulto ni Leni",
|
| 239 |
-
"Privileged",
|
| 240 |
-
"Out of touch",
|
| 241 |
-
"Political loser",
|
| 242 |
-
"Ambisyosa",
|
| 243 |
-
"Bakit hindi ka tumakbo?",
|
| 244 |
-
"lugaw", # derogatory nickname for Robredo
|
| 245 |
-
"incompetente si Leni",
|
| 246 |
-
"walang nagawa si VP",
|
| 247 |
-
"plastic na pagmamahal",
|
| 248 |
-
"pang-epal lang",
|
| 249 |
-
"OVP budget sayang",
|
| 250 |
-
"pink propaganda",
|
| 251 |
-
"emotional voters",
|
| 252 |
-
"bobotante ng emosyon",
|
| 253 |
-
"dilawan ulit",
|
| 254 |
-
"yellowtard",
|
| 255 |
-
"Aquino alaga",
|
| 256 |
-
"Cory hangover",
|
| 257 |
-
"oligarko ng LP",
|
| 258 |
-
"LP trapo",
|
| 259 |
-
"Liberal Party corrupt",
|
| 260 |
-
"Robredo incompetent",
|
| 261 |
-
"lugaw republic",
|
| 262 |
-
"pabor sa NPA",
|
| 263 |
-
"komunistang suporta",
|
| 264 |
-
"abogadong walang alam",
|
| 265 |
-
"epal na relief ops",
|
| 266 |
-
"drama lang siya",
|
| 267 |
-
"intsik ang pondo", # baseless China-funding smear
|
| 268 |
-
"kakampink bobo",
|
| 269 |
-
"pink cult",
|
| 270 |
-
"sira ang isip ng pink",
|
| 271 |
-
"Leni talo na talo",
|
| 272 |
-
"loser si Leni",
|
| 273 |
-
"hindi electable",
|
| 274 |
-
"media darling lang",
|
| 275 |
-
"biased na survey",
|
| 276 |
-
"SWS peke",
|
| 277 |
-
"Pulse Asia bayad",
|
| 278 |
-
"mainstream media alaga",
|
| 279 |
-
"woke politics",
|
| 280 |
-
"imported agenda",
|
| 281 |
-
"western puppet",
|
| 282 |
-
"NGO funded Leni",
|
| 283 |
-
"traydor sa Visayas",
|
| 284 |
-
]
|
| 285 |
-
|
| 286 |
-
# Phrases used by/about the MARCOS ADMINISTRATION faction
|
| 287 |
-
ADMIN_PRO = [
|
| 288 |
-
|
| 289 |
-
"
|
| 290 |
-
"
|
| 291 |
-
"
|
| 292 |
-
"marcos
|
| 293 |
-
"
|
| 294 |
-
"
|
| 295 |
-
"marcos
|
| 296 |
-
"
|
| 297 |
-
"marcos
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
"
|
| 302 |
-
"
|
| 303 |
-
"
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
"
|
| 308 |
-
"
|
| 309 |
-
"
|
| 310 |
-
"
|
| 311 |
-
"
|
| 312 |
-
"
|
| 313 |
-
"
|
| 314 |
-
"
|
| 315 |
-
"
|
| 316 |
-
"
|
| 317 |
-
"
|
| 318 |
-
"
|
| 319 |
-
"
|
| 320 |
-
"
|
| 321 |
-
"
|
| 322 |
-
"
|
| 323 |
-
"
|
| 324 |
-
"
|
| 325 |
-
"
|
| 326 |
-
"
|
| 327 |
-
"
|
| 328 |
-
"
|
| 329 |
-
"
|
| 330 |
-
"
|
| 331 |
-
"
|
| 332 |
-
"
|
| 333 |
-
"
|
| 334 |
-
"
|
| 335 |
-
"
|
| 336 |
-
"
|
| 337 |
-
"
|
| 338 |
-
"
|
| 339 |
-
"
|
| 340 |
-
"
|
| 341 |
-
"
|
| 342 |
-
"
|
| 343 |
-
"
|
| 344 |
-
"
|
| 345 |
-
"
|
| 346 |
-
|
| 347 |
-
"
|
| 348 |
-
"
|
| 349 |
-
"
|
| 350 |
-
"
|
| 351 |
-
"
|
| 352 |
-
"
|
| 353 |
-
"
|
| 354 |
-
"
|
| 355 |
-
"
|
| 356 |
-
"
|
| 357 |
-
"
|
| 358 |
-
"
|
| 359 |
-
"
|
| 360 |
-
"
|
| 361 |
-
"hindi
|
| 362 |
-
"
|
| 363 |
-
"
|
| 364 |
-
"
|
| 365 |
-
"
|
| 366 |
-
"
|
| 367 |
-
"
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
"
|
| 372 |
-
"
|
| 373 |
-
"
|
| 374 |
-
"
|
| 375 |
-
"
|
| 376 |
-
"
|
| 377 |
-
"
|
| 378 |
-
"
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
"
|
| 384 |
-
"
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
"
|
| 389 |
-
"
|
| 390 |
-
"
|
| 391 |
-
"
|
| 392 |
-
"
|
| 393 |
-
"
|
| 394 |
-
"
|
| 395 |
-
"
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
"
|
| 401 |
-
"
|
| 402 |
-
"
|
| 403 |
-
"
|
| 404 |
-
"
|
| 405 |
-
"
|
| 406 |
-
"
|
| 407 |
-
"
|
| 408 |
-
"
|
| 409 |
-
"
|
| 410 |
-
"
|
| 411 |
-
"
|
| 412 |
-
"
|
| 413 |
-
"
|
| 414 |
-
"
|
| 415 |
-
"
|
| 416 |
-
"
|
| 417 |
-
"
|
| 418 |
-
"
|
| 419 |
-
"
|
| 420 |
-
"
|
| 421 |
-
"
|
| 422 |
-
"
|
| 423 |
-
"
|
| 424 |
-
"
|
| 425 |
-
"
|
| 426 |
-
"
|
| 427 |
-
"
|
| 428 |
-
"
|
| 429 |
-
"
|
| 430 |
-
"
|
| 431 |
-
"
|
| 432 |
-
"
|
| 433 |
-
"
|
| 434 |
-
"
|
| 435 |
-
"
|
| 436 |
-
"
|
| 437 |
-
"
|
| 438 |
-
"
|
| 439 |
-
"
|
| 440 |
-
"
|
| 441 |
-
"
|
| 442 |
-
"
|
| 443 |
-
"
|
| 444 |
-
"
|
| 445 |
-
"
|
| 446 |
-
"
|
| 447 |
-
"
|
| 448 |
-
"
|
| 449 |
-
"
|
| 450 |
-
"
|
| 451 |
-
"
|
| 452 |
-
"
|
| 453 |
-
"
|
| 454 |
-
"
|
| 455 |
-
"
|
| 456 |
-
"
|
| 457 |
-
"
|
| 458 |
-
"
|
| 459 |
-
"
|
| 460 |
-
"
|
| 461 |
-
"
|
| 462 |
-
"
|
| 463 |
-
"
|
| 464 |
-
"
|
| 465 |
-
"
|
| 466 |
-
"
|
| 467 |
-
"
|
| 468 |
-
"
|
| 469 |
-
"
|
| 470 |
-
"
|
| 471 |
-
"
|
| 472 |
-
"
|
| 473 |
-
"
|
| 474 |
-
"
|
| 475 |
-
"
|
| 476 |
-
"
|
| 477 |
-
"
|
| 478 |
-
"
|
| 479 |
-
"
|
| 480 |
-
"
|
| 481 |
-
"
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
"
|
| 486 |
-
"
|
| 487 |
-
"
|
| 488 |
-
"
|
| 489 |
-
"
|
| 490 |
-
"
|
| 491 |
-
"
|
| 492 |
-
"
|
| 493 |
-
"
|
| 494 |
-
"
|
| 495 |
-
"
|
| 496 |
-
"
|
| 497 |
-
"
|
| 498 |
-
"
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
"
|
| 503 |
-
"
|
| 504 |
-
"
|
| 505 |
-
"
|
| 506 |
-
"
|
| 507 |
-
"
|
| 508 |
-
"
|
| 509 |
-
"
|
| 510 |
-
"
|
| 511 |
-
"
|
| 512 |
-
"
|
| 513 |
-
"
|
| 514 |
-
"
|
| 515 |
-
"
|
| 516 |
-
"
|
| 517 |
-
"
|
| 518 |
-
"
|
| 519 |
-
"
|
| 520 |
-
"
|
| 521 |
-
"
|
| 522 |
-
"
|
| 523 |
-
"
|
| 524 |
-
"
|
| 525 |
-
"
|
| 526 |
-
"
|
| 527 |
-
"
|
| 528 |
-
"
|
| 529 |
-
"
|
| 530 |
-
"
|
| 531 |
-
"
|
| 532 |
-
"
|
| 533 |
-
"
|
| 534 |
-
"
|
| 535 |
-
"
|
| 536 |
-
"
|
| 537 |
-
"
|
| 538 |
-
"
|
| 539 |
-
"
|
| 540 |
-
"
|
| 541 |
-
"
|
| 542 |
-
"
|
| 543 |
-
"
|
| 544 |
-
"
|
| 545 |
-
"
|
| 546 |
-
"
|
| 547 |
-
"
|
| 548 |
-
"
|
| 549 |
-
"
|
| 550 |
-
"
|
| 551 |
-
"
|
| 552 |
-
"
|
| 553 |
-
"
|
| 554 |
-
"
|
| 555 |
-
"
|
| 556 |
-
"
|
| 557 |
-
"
|
| 558 |
-
"
|
| 559 |
-
"
|
| 560 |
-
"
|
| 561 |
-
"
|
| 562 |
-
"
|
| 563 |
-
"
|
| 564 |
-
"
|
| 565 |
-
"
|
| 566 |
-
"
|
| 567 |
-
"
|
| 568 |
-
"
|
| 569 |
-
"
|
| 570 |
-
"
|
| 571 |
-
"
|
| 572 |
-
"
|
| 573 |
-
|
| 574 |
-
"
|
| 575 |
-
"
|
| 576 |
-
"
|
| 577 |
-
"
|
| 578 |
-
"
|
| 579 |
-
"
|
| 580 |
-
"
|
| 581 |
-
"
|
| 582 |
-
"
|
| 583 |
-
"
|
| 584 |
-
"
|
| 585 |
-
"
|
| 586 |
-
"
|
| 587 |
-
"
|
| 588 |
-
"
|
| 589 |
-
"
|
| 590 |
-
|
| 591 |
-
"
|
| 592 |
-
"
|
| 593 |
-
"
|
| 594 |
-
"
|
| 595 |
-
"
|
| 596 |
-
"
|
| 597 |
-
"
|
| 598 |
-
"
|
| 599 |
-
"
|
| 600 |
-
"
|
| 601 |
-
"
|
| 602 |
-
"
|
| 603 |
-
"
|
| 604 |
-
"
|
| 605 |
-
"
|
| 606 |
-
"
|
| 607 |
-
"
|
| 608 |
-
"
|
| 609 |
-
"
|
| 610 |
-
"
|
| 611 |
-
"
|
| 612 |
-
"
|
| 613 |
-
"
|
| 614 |
-
"
|
| 615 |
-
"
|
| 616 |
-
"
|
| 617 |
-
"
|
| 618 |
-
"
|
| 619 |
-
"BBM
|
| 620 |
-
"
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
"
|
| 626 |
-
"
|
| 627 |
-
"
|
| 628 |
-
"
|
| 629 |
-
"
|
| 630 |
-
"
|
| 631 |
-
"
|
| 632 |
-
"
|
| 633 |
-
"
|
| 634 |
-
"
|
| 635 |
-
"
|
| 636 |
-
"
|
| 637 |
-
"
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
"
|
| 643 |
-
"
|
| 644 |
-
"
|
| 645 |
-
"
|
| 646 |
-
"according to
|
| 647 |
-
"
|
| 648 |
-
"
|
| 649 |
-
"
|
| 650 |
-
"
|
| 651 |
-
"
|
| 652 |
-
"
|
| 653 |
-
"
|
| 654 |
-
"
|
| 655 |
-
"
|
| 656 |
-
"
|
| 657 |
-
"
|
| 658 |
-
"
|
| 659 |
-
"
|
| 660 |
-
"
|
| 661 |
-
"
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
"
|
| 669 |
-
"
|
| 670 |
-
"
|
| 671 |
-
"
|
| 672 |
-
"
|
| 673 |
-
"
|
| 674 |
-
"
|
| 675 |
-
"
|
| 676 |
-
"
|
| 677 |
-
"
|
| 678 |
-
"
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
"
|
| 686 |
-
"
|
| 687 |
-
"
|
| 688 |
-
"
|
| 689 |
-
"
|
| 690 |
-
"
|
| 691 |
-
"
|
| 692 |
-
"
|
| 693 |
-
"
|
| 694 |
-
"
|
| 695 |
-
"
|
| 696 |
-
"
|
| 697 |
-
"
|
| 698 |
-
"
|
| 699 |
-
"
|
| 700 |
-
"
|
| 701 |
-
"
|
| 702 |
-
"
|
| 703 |
-
"
|
| 704 |
-
"
|
| 705 |
-
"
|
| 706 |
-
"
|
| 707 |
-
"
|
| 708 |
-
"
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
"
|
| 713 |
-
"
|
| 714 |
-
"
|
| 715 |
-
"
|
| 716 |
-
"
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
"
|
| 720 |
-
"
|
| 721 |
-
"
|
| 722 |
-
"
|
| 723 |
-
"
|
| 724 |
-
"
|
| 725 |
-
"
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
"
|
| 730 |
-
"
|
| 731 |
-
"
|
| 732 |
-
"
|
| 733 |
-
"
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
"
|
| 738 |
-
"
|
| 739 |
-
"
|
| 740 |
-
"
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
"
|
| 753 |
-
|
| 754 |
-
"
|
| 755 |
-
"
|
| 756 |
-
"
|
| 757 |
-
"
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
"
|
| 770 |
-
|
| 771 |
-
"
|
| 772 |
-
"
|
| 773 |
-
"
|
| 774 |
-
"
|
| 775 |
-
"
|
| 776 |
-
"
|
| 777 |
-
|
| 778 |
-
"
|
| 779 |
-
"
|
| 780 |
-
"
|
| 781 |
-
"
|
| 782 |
-
"
|
| 783 |
-
"
|
| 784 |
-
"
|
| 785 |
-
"
|
| 786 |
-
"
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
"
|
| 790 |
-
"
|
| 791 |
-
"
|
| 792 |
-
"
|
| 793 |
-
"
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
"i
|
| 797 |
-
"
|
| 798 |
-
"
|
| 799 |
-
"
|
| 800 |
-
"
|
| 801 |
-
"
|
| 802 |
-
"
|
| 803 |
-
"
|
| 804 |
-
"
|
| 805 |
-
|
| 806 |
-
"
|
| 807 |
-
"
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
"
|
| 814 |
-
"
|
| 815 |
-
"
|
| 816 |
-
"
|
| 817 |
-
"
|
| 818 |
-
"
|
| 819 |
-
"
|
| 820 |
-
"
|
| 821 |
-
"
|
| 822 |
-
"
|
| 823 |
-
"
|
| 824 |
-
"
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
"
|
| 830 |
-
"
|
| 831 |
-
"
|
| 832 |
-
"
|
| 833 |
-
"
|
| 834 |
-
"
|
| 835 |
-
"
|
| 836 |
-
"
|
| 837 |
-
"
|
| 838 |
-
"
|
| 839 |
-
"
|
| 840 |
-
"
|
| 841 |
-
"
|
| 842 |
-
"
|
| 843 |
-
"
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
"
|
| 852 |
-
"
|
| 853 |
-
"
|
| 854 |
-
"
|
| 855 |
-
"
|
| 856 |
-
"
|
| 857 |
-
"
|
| 858 |
-
"
|
| 859 |
-
"
|
| 860 |
-
"
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
"
|
| 869 |
-
"
|
| 870 |
-
"
|
| 871 |
-
"
|
| 872 |
-
"
|
| 873 |
-
"
|
| 874 |
-
"
|
| 875 |
-
"
|
| 876 |
-
"
|
| 877 |
-
"
|
| 878 |
-
"
|
| 879 |
-
|
| 880 |
-
"
|
| 881 |
-
"
|
| 882 |
-
"
|
| 883 |
-
"
|
| 884 |
-
"
|
| 885 |
-
"
|
| 886 |
-
"
|
| 887 |
-
"
|
| 888 |
-
"
|
| 889 |
-
"
|
| 890 |
-
"
|
| 891 |
-
"
|
| 892 |
-
"
|
| 893 |
-
"
|
| 894 |
-
"
|
| 895 |
-
"
|
| 896 |
-
|
| 897 |
-
"
|
| 898 |
-
"
|
| 899 |
-
"
|
| 900 |
-
"
|
| 901 |
-
"
|
| 902 |
-
"
|
| 903 |
-
"
|
| 904 |
-
"
|
| 905 |
-
"
|
| 906 |
-
"
|
| 907 |
-
"
|
| 908 |
-
"
|
| 909 |
-
"
|
| 910 |
-
"
|
| 911 |
-
"
|
| 912 |
-
|
| 913 |
-
"
|
| 914 |
-
"
|
| 915 |
-
"
|
| 916 |
-
"
|
| 917 |
-
"
|
| 918 |
-
"
|
| 919 |
-
"
|
| 920 |
-
"
|
| 921 |
-
"
|
| 922 |
-
"
|
| 923 |
-
"
|
| 924 |
-
"
|
| 925 |
-
"
|
| 926 |
-
"
|
| 927 |
-
"
|
| 928 |
-
"
|
| 929 |
-
|
| 930 |
-
"
|
| 931 |
-
"
|
| 932 |
-
"
|
| 933 |
-
"
|
| 934 |
-
"
|
| 935 |
-
"
|
| 936 |
-
"
|
| 937 |
-
"
|
| 938 |
-
"
|
| 939 |
-
"
|
| 940 |
-
"
|
| 941 |
-
"
|
| 942 |
-
"
|
| 943 |
-
"
|
| 944 |
-
"
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
"
|
| 950 |
-
"
|
| 951 |
-
"
|
| 952 |
-
"
|
| 953 |
-
"
|
| 954 |
-
"
|
| 955 |
-
"
|
| 956 |
-
"
|
| 957 |
-
"
|
| 958 |
-
"
|
| 959 |
-
"
|
| 960 |
-
"
|
| 961 |
-
"
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
"
|
| 967 |
-
"
|
| 968 |
-
"
|
| 969 |
-
"
|
| 970 |
-
"
|
| 971 |
-
"
|
| 972 |
-
"
|
| 973 |
-
"i
|
| 974 |
-
"
|
| 975 |
-
"
|
| 976 |
-
"
|
| 977 |
-
"
|
| 978 |
-
|
| 979 |
-
"
|
| 980 |
-
"
|
| 981 |
-
"
|
| 982 |
-
"
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
"
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
score
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
-
|
| 1036 |
-
|
| 1037 |
-
|
| 1038 |
-
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 1058 |
-
|
| 1059 |
-
#
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
|
| 1076 |
-
|
| 1077 |
-
|
| 1078 |
-
if
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
("\
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
("
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
| 1101 |
-
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
-
|
| 1120 |
-
|
| 1121 |
-
|
| 1122 |
-
|
| 1123 |
-
|
| 1124 |
-
|
| 1125 |
-
|
| 1126 |
-
|
| 1127 |
-
"
|
| 1128 |
-
"
|
| 1129 |
-
"
|
| 1130 |
-
"
|
| 1131 |
-
"
|
| 1132 |
-
"
|
| 1133 |
-
"
|
| 1134 |
-
"
|
| 1135 |
-
"
|
| 1136 |
-
"
|
| 1137 |
-
"
|
| 1138 |
-
"
|
| 1139 |
-
"
|
| 1140 |
-
"
|
| 1141 |
-
"
|
| 1142 |
-
"
|
| 1143 |
-
"
|
| 1144 |
-
"
|
| 1145 |
-
"
|
| 1146 |
-
"
|
| 1147 |
-
"
|
| 1148 |
-
"
|
| 1149 |
-
"
|
| 1150 |
-
"
|
| 1151 |
-
"
|
| 1152 |
-
"
|
| 1153 |
-
"
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
"
|
| 1157 |
-
|
| 1158 |
-
|
| 1159 |
-
"
|
| 1160 |
-
|
| 1161 |
-
|
| 1162 |
-
|
| 1163 |
-
|
| 1164 |
-
|
| 1165 |
-
|
| 1166 |
-
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
| 1170 |
-
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
|
| 1181 |
-
|
| 1182 |
-
|
| 1183 |
-
|
| 1184 |
-
|
| 1185 |
-
|
| 1186 |
-
|
| 1187 |
-
|
| 1188 |
-
|
| 1189 |
-
|
| 1190 |
-
|
| 1191 |
-
|
| 1192 |
-
|
| 1193 |
-
)
|
| 1194 |
-
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
|
| 1198 |
-
|
| 1199 |
-
|
| 1200 |
-
|
| 1201 |
-
|
| 1202 |
-
|
| 1203 |
-
|
| 1204 |
-
|
| 1205 |
-
|
| 1206 |
-
|
| 1207 |
-
|
| 1208 |
-
|
| 1209 |
-
|
| 1210 |
-
|
| 1211 |
-
|
| 1212 |
-
|
| 1213 |
-
|
| 1214 |
-
|
| 1215 |
-
|
| 1216 |
-
|
| 1217 |
-
|
| 1218 |
-
|
| 1219 |
-
|
| 1220 |
-
|
| 1221 |
-
|
| 1222 |
-
|
| 1223 |
-
|
| 1224 |
-
|
| 1225 |
-
|
| 1226 |
-
|
| 1227 |
-
|
| 1228 |
-
|
| 1229 |
-
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
|
| 1234 |
-
|
| 1235 |
-
|
| 1236 |
-
|
| 1237 |
-
|
| 1238 |
-
|
| 1239 |
-
|
| 1240 |
-
|
| 1241 |
-
|
| 1242 |
-
|
| 1243 |
-
|
| 1244 |
-
|
| 1245 |
-
|
| 1246 |
-
|
| 1247 |
-
|
| 1248 |
-
|
| 1249 |
-
|
| 1250 |
-
|
| 1251 |
-
|
| 1252 |
-
|
| 1253 |
-
|
| 1254 |
-
|
| 1255 |
-
|
| 1256 |
-
|
| 1257 |
-
|
| 1258 |
-
|
| 1259 |
-
|
| 1260 |
-
|
| 1261 |
-
|
| 1262 |
-
|
| 1263 |
-
|
| 1264 |
-
|
| 1265 |
-
|
| 1266 |
-
subjectivity:
|
| 1267 |
-
subjectivity_flag:
|
| 1268 |
-
vader_compound:
|
| 1269 |
-
vader_biased:
|
| 1270 |
-
confidence:
|
| 1271 |
-
|
| 1272 |
-
|
| 1273 |
-
|
| 1274 |
-
|
| 1275 |
-
|
| 1276 |
-
|
| 1277 |
-
|
| 1278 |
-
|
| 1279 |
-
|
| 1280 |
-
|
| 1281 |
-
|
| 1282 |
-
|
| 1283 |
-
|
| 1284 |
-
|
| 1285 |
-
|
| 1286 |
-
|
| 1287 |
-
|
| 1288 |
-
|
| 1289 |
-
|
| 1290 |
-
|
| 1291 |
-
|
| 1292 |
-
|
| 1293 |
-
|
| 1294 |
-
|
| 1295 |
-
|
| 1296 |
-
|
| 1297 |
-
|
| 1298 |
-
|
| 1299 |
-
|
| 1300 |
-
|
| 1301 |
-
|
| 1302 |
-
|
| 1303 |
-
|
| 1304 |
-
|
| 1305 |
-
|
| 1306 |
-
|
| 1307 |
-
|
| 1308 |
-
|
| 1309 |
-
|
| 1310 |
-
|
| 1311 |
-
|
| 1312 |
-
#
|
| 1313 |
-
|
| 1314 |
-
|
| 1315 |
-
|
| 1316 |
-
|
| 1317 |
-
|
| 1318 |
-
|
| 1319 |
-
|
| 1320 |
-
|
| 1321 |
-
|
| 1322 |
-
|
| 1323 |
-
|
| 1324 |
-
|
| 1325 |
-
|
| 1326 |
-
|
| 1327 |
-
|
| 1328 |
-
|
| 1329 |
-
|
| 1330 |
-
|
| 1331 |
-
|
| 1332 |
-
|
| 1333 |
-
|
| 1334 |
-
|
| 1335 |
-
|
| 1336 |
-
|
| 1337 |
-
|
| 1338 |
-
|
| 1339 |
-
|
| 1340 |
-
|
| 1341 |
-
|
| 1342 |
-
#
|
| 1343 |
-
|
| 1344 |
-
|
| 1345 |
-
|
| 1346 |
-
|
| 1347 |
-
|
| 1348 |
-
|
| 1349 |
-
|
| 1350 |
-
|
| 1351 |
-
|
| 1352 |
-
|
| 1353 |
-
|
| 1354 |
-
|
| 1355 |
-
|
| 1356 |
-
|
| 1357 |
-
|
| 1358 |
-
|
| 1359 |
-
|
| 1360 |
-
|
| 1361 |
-
|
| 1362 |
-
|
| 1363 |
-
|
| 1364 |
-
|
| 1365 |
-
|
| 1366 |
-
|
| 1367 |
-
|
| 1368 |
-
|
| 1369 |
-
|
| 1370 |
-
|
| 1371 |
-
|
| 1372 |
-
|
| 1373 |
-
|
| 1374 |
-
|
| 1375 |
-
|
| 1376 |
-
|
| 1377 |
-
|
| 1378 |
-
|
| 1379 |
-
|
| 1380 |
-
|
| 1381 |
-
|
| 1382 |
-
|
| 1383 |
-
|
| 1384 |
-
|
| 1385 |
-
|
| 1386 |
-
|
| 1387 |
-
|
| 1388 |
-
|
| 1389 |
-
|
| 1390 |
-
|
| 1391 |
-
|
| 1392 |
-
|
| 1393 |
-
|
| 1394 |
-
|
| 1395 |
-
|
| 1396 |
-
|
| 1397 |
-
|
| 1398 |
-
|
| 1399 |
-
|
| 1400 |
-
|
| 1401 |
-
|
| 1402 |
-
|
| 1403 |
-
|
| 1404 |
-
|
| 1405 |
-
|
| 1406 |
-
|
| 1407 |
-
"sensational_keywords": sensational_hits,
|
| 1408 |
-
"opinion_markers": opinion_hits,
|
| 1409 |
-
"unsourced_signals": unsourced_signals,
|
| 1410 |
-
"attribution_count": attribution_count,
|
| 1411 |
-
"obfuscation_signals": obfuscation_signals,
|
| 1412 |
-
"figure_hits": figure_hits,
|
| 1413 |
-
"left_score": left_score,
|
| 1414 |
-
"right_score": right_score,
|
| 1415 |
-
"conservative_score": conservative_score,
|
| 1416 |
-
"admin_score": admin_score,
|
| 1417 |
-
"liberal_score": liberal_score,
|
| 1418 |
-
"evidence_score": evidence_score,
|
| 1419 |
-
"sensationalism_score": sensationalism_score,
|
| 1420 |
-
"pattern_deviation_verdict": pd_verdict,
|
| 1421 |
-
"deviation_score": round(pd_score, 4),
|
| 1422 |
-
},
|
| 1423 |
-
}
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Bias Analyzer β Heuristic-based political bias detection + subjectivity scoring
|
| 3 |
+
=================================================================================
|
| 4 |
+
Analyzes Filipino news articles for political bias using:
|
| 5 |
+
- Keyword patterns (left/right/sensational)
|
| 6 |
+
- Philippine political figure sentiment (2025-2026 context)
|
| 7 |
+
- Unsourced claim / "blind item" detection
|
| 8 |
+
- Opinion markers and subjectivity thresholds
|
| 9 |
+
- VADER sentiment scoring
|
| 10 |
+
|
| 11 |
+
Returns: Left-leaning, Right-leaning, Conservative, or Centrist.
|
| 12 |
+
Also flags unsourced claims (chismis / blind item style fake news).
|
| 13 |
+
"""
|
| 14 |
+
|
| 15 |
+
import re
|
| 16 |
+
from textblob import TextBlob
|
| 17 |
+
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
| 18 |
+
|
| 19 |
+
# Shared VADER analyzer instance
|
| 20 |
+
_vader = SentimentIntensityAnalyzer()
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
# ββ Philippine Political Figure Keywords (2025-2026 context) ββββββββββββββββ
|
| 24 |
+
#
|
| 25 |
+
# The Philippine political landscape after 2024 has three main camps:
|
| 26 |
+
# CONSERVATIVE (Duterte faction) β Pro-Duterte, Anti-Marcos, Anti-Leni
|
| 27 |
+
# ADMIN/RIGHT (Marcos faction) β Pro-Marcos admin, critical of Duterte now
|
| 28 |
+
# LIBERAL/LEFT (Leni bloc) β Pro-Leni, Anti-Duterte, Anti-Marcos
|
| 29 |
+
#
|
| 30 |
+
# A CENTRIST does not side with personalities but examines credentials and policy.
|
| 31 |
+
|
| 32 |
+
# Phrases used by/about the DUTERTE FACTION (conservative/nationalist)
|
| 33 |
+
CONSERVATIVE_PRO = [
|
| 34 |
+
"tatay digong",
|
| 35 |
+
"digong",
|
| 36 |
+
"mayor duterte",
|
| 37 |
+
"president duterte",
|
| 38 |
+
"rody duterte",
|
| 39 |
+
"rodrigo duterte",
|
| 40 |
+
"war on drugs works",
|
| 41 |
+
"drug war effective",
|
| 42 |
+
"bong go",
|
| 43 |
+
"sara duterte is right",
|
| 44 |
+
"vp sara",
|
| 45 |
+
"baste duterte",
|
| 46 |
+
"dds",
|
| 47 |
+
"duterte die-hard supporter",
|
| 48 |
+
"pro-duterte",
|
| 49 |
+
"18 marines",
|
| 50 |
+
"federalismo",
|
| 51 |
+
"charter change ni duterte",
|
| 52 |
+
"the dutertes",
|
| 53 |
+
"duterte legacy",
|
| 54 |
+
"pagmamahal sa bansa",
|
| 55 |
+
"du30",
|
| 56 |
+
"DU30",
|
| 57 |
+
"DDS",
|
| 58 |
+
"Tatay Digong",
|
| 59 |
+
"π",
|
| 60 |
+
"ππ΅π",
|
| 61 |
+
"Dilawan",
|
| 62 |
+
"Yellowtard",
|
| 63 |
+
"Lugaw",
|
| 64 |
+
"Lutang",
|
| 65 |
+
"Penoy",
|
| 66 |
+
"Oligarchs",
|
| 67 |
+
"Drug war",
|
| 68 |
+
"Build Build Build",
|
| 69 |
+
"Safety first",
|
| 70 |
+
"Strongman",
|
| 71 |
+
"Disiplina",
|
| 72 |
+
"Bayaran",
|
| 73 |
+
"Presinto",
|
| 74 |
+
"Fake news media",
|
| 75 |
+
"Biased",
|
| 76 |
+
"NPAs",
|
| 77 |
+
"Pula-pula",
|
| 78 |
+
"Aktibista",
|
| 79 |
+
"Woke",
|
| 80 |
+
"Moralista",
|
| 81 |
+
"Elitista",
|
| 82 |
+
"Matapang",
|
| 83 |
+
"Davao",
|
| 84 |
+
"Tapang at Malasakit",
|
| 85 |
+
"May gawa, hindi salita",
|
| 86 |
+
"Solid",
|
| 87 |
+
"Diehard",
|
| 88 |
+
"Puro reklamo",
|
| 89 |
+
"Sumunod na lang",
|
| 90 |
+
"Bakit hindi ka tumakbo?",
|
| 91 |
+
"Ambisyosa",
|
| 92 |
+
"Dating VP",
|
| 93 |
+
"Len-Len",
|
| 94 |
+
"Noynoying",
|
| 95 |
+
"Komunista",
|
| 96 |
+
"Katotohanan",
|
| 97 |
+
"DDS",
|
| 98 |
+
"Digong",
|
| 99 |
+
"Tatay Digong",
|
| 100 |
+
"PRRD",
|
| 101 |
+
"tapang at malasakit",
|
| 102 |
+
"Dutertards", # self-reclaimed by some supporters
|
| 103 |
+
"tokhang",
|
| 104 |
+
"war on drugs",
|
| 105 |
+
"change is coming",
|
| 106 |
+
"federalismo",
|
| 107 |
+
"BBL supporter",
|
| 108 |
+
"Build Build Build",
|
| 109 |
+
"Mindanaoan pride",
|
| 110 |
+
"Davao model",
|
| 111 |
+
"anti-dilawan",
|
| 112 |
+
"dilawan tayo", # used sarcastically against critics
|
| 113 |
+
"presyo ng bigas", # rice price talking point
|
| 114 |
+
"disente daw", # mockery of "decent" critics
|
| 115 |
+
"RP first",
|
| 116 |
+
"sovereign PH",
|
| 117 |
+
"OFW ni Digong",
|
| 118 |
+
"ICC out",
|
| 119 |
+
"ICC biased",
|
| 120 |
+
"CHR useless",
|
| 121 |
+
"media biased", # ABS-CBN franchise issue framing
|
| 122 |
+
"NTF-ELCAC",
|
| 123 |
+
"red-tagging justified",
|
| 124 |
+
"leftist agenda",
|
| 125 |
+
"destabilize",
|
| 126 |
+
"dilawang media",
|
| 127 |
+
"lugaw", # derogatory term for Robredo
|
| 128 |
+
"walang nagawa si Leni",
|
| 129 |
+
"Marcos-Duterte alliance",
|
| 130 |
+
"UniTeam loyalist",
|
| 131 |
+
"Hugpong",
|
| 132 |
+
"PDDS",
|
| 133 |
+
"Katas ng Saudi", # OFW remittance pride narrative
|
| 134 |
+
"drug lord protectors",
|
| 135 |
+
"yellows",
|
| 136 |
+
"Dutertista",
|
| 137 |
+
]
|
| 138 |
+
CONSERVATIVE_ANTI = [
|
| 139 |
+
# Anti-Marcos (used by Duterte faction after their fallout)
|
| 140 |
+
"marcos incompetent",
|
| 141 |
+
"marcos palpak",
|
| 142 |
+
"marcos nagkanulo",
|
| 143 |
+
"ibaba si marcos",
|
| 144 |
+
"marcos ay traydor",
|
| 145 |
+
"marcos nagpalit ng tuktok",
|
| 146 |
+
"marcos dynasty",
|
| 147 |
+
"marcos diktador",
|
| 148 |
+
"bangag",
|
| 149 |
+
"Magnanakaw",
|
| 150 |
+
"BabyM",
|
| 151 |
+
"LBM",
|
| 152 |
+
"Sinungaling",
|
| 153 |
+
"Unity-ng-magnanakaw",
|
| 154 |
+
"Party President",
|
| 155 |
+
"Bangag",
|
| 156 |
+
"Cocaine-user",
|
| 157 |
+
"Dictator junior",
|
| 158 |
+
"Tax evader",
|
| 159 |
+
"Mandaraya",
|
| 160 |
+
"Golden Age (ironic)",
|
| 161 |
+
"Tallano Gold (mocking)",
|
| 162 |
+
"Traveler-in-Chief",
|
| 163 |
+
"Unity-is-scam",
|
| 164 |
+
"Historical distortor",
|
| 165 |
+
"Puppet of Romualdez",
|
| 166 |
+
"Weak leader",
|
| 167 |
+
"Walang nagawa",
|
| 168 |
+
"Incompetent",
|
| 169 |
+
"Flood control scandal",
|
| 170 |
+
"Trillion Peso March",
|
| 171 |
+
"Ill-gotten wealth",
|
| 172 |
+
"Martial law baby",
|
| 173 |
+
"Vlog-president",
|
| 174 |
+
"Absentee leader",
|
| 175 |
+
"Impeachment target",
|
| 176 |
+
"Marcos-crony",
|
| 177 |
+
"BBM-serye",
|
| 178 |
+
"Nepo-baby",
|
| 179 |
+
"Unite-troll",
|
| 180 |
+
"Bagong Pilipinas (mocking)",
|
| 181 |
+
"Maharlika-scam",
|
| 182 |
+
"Rice at 20 pesos (mocking)",
|
| 183 |
+
"Unity-over-justice",
|
| 184 |
+
"Puro party",
|
| 185 |
+
"Walang kusa",
|
| 186 |
+
"Fake diploma",
|
| 187 |
+
"Legacy-washer",
|
| 188 |
+
"Marcos-pa-rin (ironic)"
|
| 189 |
+
# Anti-Leni
|
| 190 |
+
"dilawan",
|
| 191 |
+
"kakampink",
|
| 192 |
+
"kakampwet",
|
| 193 |
+
"hontivirus",
|
| 194 |
+
"trilliling",
|
| 195 |
+
"leni lugaw",
|
| 196 |
+
"yellow army",
|
| 197 |
+
"kakampink talo",
|
| 198 |
+
"leni talo",
|
| 199 |
+
"leni sinungaling",
|
| 200 |
+
"leni bayad",
|
| 201 |
+
"aquino oligarch",
|
| 202 |
+
"oposisyon mapanlinlang",
|
| 203 |
+
"sentenaryo ng laban nila",
|
| 204 |
+
"Lugaw",
|
| 205 |
+
"Lutang",
|
| 206 |
+
"Pinktard",
|
| 207 |
+
"Kakampwet",
|
| 208 |
+
"NPA-sympathizer",
|
| 209 |
+
"Elitista",
|
| 210 |
+
"Matapobre",
|
| 211 |
+
"Moral high grounder",
|
| 212 |
+
"Dilawan",
|
| 213 |
+
"Yellowtard",
|
| 214 |
+
"Fake VP",
|
| 215 |
+
"Puppet of the US",
|
| 216 |
+
"Oligarch-funded",
|
| 217 |
+
"Puro dada",
|
| 218 |
+
"Self-righteous",
|
| 219 |
+
"Woke",
|
| 220 |
+
"Cancel culture",
|
| 221 |
+
"Leni-lenin",
|
| 222 |
+
"Komunista",
|
| 223 |
+
"Pabida",
|
| 224 |
+
"Pa-victim",
|
| 225 |
+
"Len-len",
|
| 226 |
+
"Madumb",
|
| 227 |
+
"Puppet",
|
| 228 |
+
"Lahat na lang mali",
|
| 229 |
+
"Neoliberal",
|
| 230 |
+
"Yellow-bleeding",
|
| 231 |
+
"Manila-centric",
|
| 232 |
+
"Hypocrite",
|
| 233 |
+
"The 1%",
|
| 234 |
+
"Walang alam",
|
| 235 |
+
"Staging photos",
|
| 236 |
+
"PR-driven",
|
| 237 |
+
"Puro puso walang utak",
|
| 238 |
+
"Kulto ni Leni",
|
| 239 |
+
"Privileged",
|
| 240 |
+
"Out of touch",
|
| 241 |
+
"Political loser",
|
| 242 |
+
"Ambisyosa",
|
| 243 |
+
"Bakit hindi ka tumakbo?",
|
| 244 |
+
"lugaw", # derogatory nickname for Robredo
|
| 245 |
+
"incompetente si Leni",
|
| 246 |
+
"walang nagawa si VP",
|
| 247 |
+
"plastic na pagmamahal",
|
| 248 |
+
"pang-epal lang",
|
| 249 |
+
"OVP budget sayang",
|
| 250 |
+
"pink propaganda",
|
| 251 |
+
"emotional voters",
|
| 252 |
+
"bobotante ng emosyon",
|
| 253 |
+
"dilawan ulit",
|
| 254 |
+
"yellowtard",
|
| 255 |
+
"Aquino alaga",
|
| 256 |
+
"Cory hangover",
|
| 257 |
+
"oligarko ng LP",
|
| 258 |
+
"LP trapo",
|
| 259 |
+
"Liberal Party corrupt",
|
| 260 |
+
"Robredo incompetent",
|
| 261 |
+
"lugaw republic",
|
| 262 |
+
"pabor sa NPA",
|
| 263 |
+
"komunistang suporta",
|
| 264 |
+
"abogadong walang alam",
|
| 265 |
+
"epal na relief ops",
|
| 266 |
+
"drama lang siya",
|
| 267 |
+
"intsik ang pondo", # baseless China-funding smear
|
| 268 |
+
"kakampink bobo",
|
| 269 |
+
"pink cult",
|
| 270 |
+
"sira ang isip ng pink",
|
| 271 |
+
"Leni talo na talo",
|
| 272 |
+
"loser si Leni",
|
| 273 |
+
"hindi electable",
|
| 274 |
+
"media darling lang",
|
| 275 |
+
"biased na survey",
|
| 276 |
+
"SWS peke",
|
| 277 |
+
"Pulse Asia bayad",
|
| 278 |
+
"mainstream media alaga",
|
| 279 |
+
"woke politics",
|
| 280 |
+
"imported agenda",
|
| 281 |
+
"western puppet",
|
| 282 |
+
"NGO funded Leni",
|
| 283 |
+
"traydor sa Visayas",
|
| 284 |
+
]
|
| 285 |
+
|
| 286 |
+
# Phrases used by/about the MARCOS ADMINISTRATION faction
|
| 287 |
+
ADMIN_PRO = [
|
| 288 |
+
|
| 289 |
+
"uniteam",
|
| 290 |
+
"marcos legacy",
|
| 291 |
+
"bagong pilipinas",
|
| 292 |
+
"marcos economic plan",
|
| 293 |
+
"first lady liza",
|
| 294 |
+
"marcos right",
|
| 295 |
+
"marcos tama",
|
| 296 |
+
"marcos galing",
|
| 297 |
+
"marcos matino",
|
| 298 |
+
# NOTE: 'PBBM' and 'BBM' removed as standalone bias signals.
|
| 299 |
+
# These are neutral abbreviations used by ALL Philippine media to refer to
|
| 300 |
+
# the sitting president. Only biased contextual phrases are kept.
|
| 301 |
+
"UniTeam",
|
| 302 |
+
"β€οΈ",
|
| 303 |
+
"βοΈ",
|
| 304 |
+
"Solid North",
|
| 305 |
+
"Bagong Pilipinas",
|
| 306 |
+
"Unity",
|
| 307 |
+
"Pagkakaisa",
|
| 308 |
+
"Marcosian",
|
| 309 |
+
"Loyalist",
|
| 310 |
+
"Tiger of the North",
|
| 311 |
+
"BBM-Sara",
|
| 312 |
+
"Economic recovery",
|
| 313 |
+
"Maharlika",
|
| 314 |
+
"Kadiwa",
|
| 315 |
+
"Legacy",
|
| 316 |
+
"Golden Age",
|
| 317 |
+
"Moving forward",
|
| 318 |
+
"Forgiveness",
|
| 319 |
+
"Negative campaigning",
|
| 320 |
+
"Paninira",
|
| 321 |
+
"Pinktard",
|
| 322 |
+
"Kakampwet",
|
| 323 |
+
"Uto-uto",
|
| 324 |
+
"Propaganda",
|
| 325 |
+
"Stability",
|
| 326 |
+
"Continuity",
|
| 327 |
+
"Diplomacy",
|
| 328 |
+
"Pres. Bongbong",
|
| 329 |
+
"First Family",
|
| 330 |
+
"Infrastructure",
|
| 331 |
+
"Modernization",
|
| 332 |
+
"Walang iwanan",
|
| 333 |
+
"Pilipinas Muna",
|
| 334 |
+
"Tigre",
|
| 335 |
+
"Pula",
|
| 336 |
+
"Bangon muli",
|
| 337 |
+
"Sama-sama",
|
| 338 |
+
"Bagong Pilipinas",
|
| 339 |
+
"UniTeam",
|
| 340 |
+
"Sara Duterte",
|
| 341 |
+
"Solid Marcos",
|
| 342 |
+
"Marcos pa rin",
|
| 343 |
+
"golden age ng Marcos",
|
| 344 |
+
"rice at P20",
|
| 345 |
+
"mahirap pag-usapan ang kasaysayan", # revisionism framing
|
| 346 |
+
"historical revisionism daw",
|
| 347 |
+
"Ilocano pride",
|
| 348 |
+
"Solid North",
|
| 349 |
+
"MarcosLegacy",
|
| 350 |
+
"hindi communista",
|
| 351 |
+
"federalismo ni BBM",
|
| 352 |
+
"infra development",
|
| 353 |
+
"GNP growth",
|
| 354 |
+
"Marcos era golden years",
|
| 355 |
+
"Tallano gold", # fringe pro-Marcos wealth myth
|
| 356 |
+
"Yamashita treasure",
|
| 357 |
+
"opposition nagrereklamo lang",
|
| 358 |
+
"probinsya first",
|
| 359 |
+
"sariling atin", # economic nationalism framing
|
| 360 |
+
"Maharlika Fund",
|
| 361 |
+
"Marcos hindi magnanakaw",
|
| 362 |
+
"rehabilitasyon ni Marcos",
|
| 363 |
+
"marcos loyalista",
|
| 364 |
+
"bisita Marcos museum",
|
| 365 |
+
"admin side",
|
| 366 |
+
"Malacanang suporta",
|
| 367 |
+
"BBM-Sara tandem",
|
| 368 |
+
]
|
| 369 |
+
ADMIN_ANTI = [
|
| 370 |
+
# Anti-Duterte (used by Marcos camp after fallout)
|
| 371 |
+
"duterte corrupt",
|
| 372 |
+
"duterte accountability",
|
| 373 |
+
"duterte icc",
|
| 374 |
+
"duterte drug lord",
|
| 375 |
+
"duterte criminal",
|
| 376 |
+
"arrest duterte",
|
| 377 |
+
"duterte drug syndicate",
|
| 378 |
+
"duterte narco",
|
| 379 |
+
]
|
| 380 |
+
|
| 381 |
+
# Phrases used by/about the LIBERAL/LEFT (Leni bloc)
|
| 382 |
+
LIBERAL_PRO = [
|
| 383 |
+
"leni robredo",
|
| 384 |
+
"si leni",
|
| 385 |
+
"leni honest",
|
| 386 |
+
"leni tapat",
|
| 387 |
+
"angat buhay ni leni",
|
| 388 |
+
"kakampink",
|
| 389 |
+
"kay leni",
|
| 390 |
+
"kiko pangilinan",
|
| 391 |
+
"leila de lima",
|
| 392 |
+
"liberals tama",
|
| 393 |
+
"leni integrity",
|
| 394 |
+
"leni credentials",
|
| 395 |
+
"leni public service",
|
| 396 |
+
"pink movement",
|
| 397 |
+
"leni sincere",
|
| 398 |
+
"walang corrupt si leni",
|
| 399 |
+
"laban ng masa",
|
| 400 |
+
"makabayan bloc",
|
| 401 |
+
"progressive",
|
| 402 |
+
"Kakampink",
|
| 403 |
+
"Leni-Kiko",
|
| 404 |
+
"π",
|
| 405 |
+
"πΈ",
|
| 406 |
+
"Angat Buhay",
|
| 407 |
+
"Kulay Rosas",
|
| 408 |
+
"Husay at Tibay",
|
| 409 |
+
"Gobyernong Tapat",
|
| 410 |
+
"Radikal ang Magmahal",
|
| 411 |
+
"Resibo",
|
| 412 |
+
"Fact-check",
|
| 413 |
+
"Trolls",
|
| 414 |
+
"Magnanakaw",
|
| 415 |
+
"Dictator",
|
| 416 |
+
"Historical distortion",
|
| 417 |
+
"Unity is not enough",
|
| 418 |
+
"Walang Solid North",
|
| 419 |
+
"Bardagulan",
|
| 420 |
+
"Tumindig",
|
| 421 |
+
"Para sa Bansa",
|
| 422 |
+
"Volunteers",
|
| 423 |
+
"Pink Movement",
|
| 424 |
+
"Liwanag sa Dilim",
|
| 425 |
+
"Laban Leni",
|
| 426 |
+
"Let Leni Lead",
|
| 427 |
+
"OVP",
|
| 428 |
+
"Disinformation",
|
| 429 |
+
"Tallano Gold",
|
| 430 |
+
"BBM",
|
| 431 |
+
"LBM",
|
| 432 |
+
"Sinungaling",
|
| 433 |
+
"Tax evader",
|
| 434 |
+
"Mulat",
|
| 435 |
+
"Kababaihan",
|
| 436 |
+
"Youth vote",
|
| 437 |
+
"Para sa kinabukasan",
|
| 438 |
+
"Transparency",
|
| 439 |
+
"Accountability",
|
| 440 |
+
"Edukado",
|
| 441 |
+
"Ipanalo Natin 'To",
|
| 442 |
+
"Kakampink",
|
| 443 |
+
"Leni Lugaw", # reclaimed term of endearment
|
| 444 |
+
"Kay Leni tayo",
|
| 445 |
+
"Pink movement",
|
| 446 |
+
"Pink volunteer",
|
| 447 |
+
"Angat Buhay",
|
| 448 |
+
"OVP proud",
|
| 449 |
+
"VP Leni",
|
| 450 |
+
"Team Leni",
|
| 451 |
+
"masa tayo",
|
| 452 |
+
"puso ng serbisyo",
|
| 453 |
+
"bobotante tayo",
|
| 454 |
+
"dilaw", # reclaimed yellow color symbol
|
| 455 |
+
"totoong pagbabago",
|
| 456 |
+
"Cory legacy",
|
| 457 |
+
"EDSA spirit",
|
| 458 |
+
"Never Again",
|
| 459 |
+
"Martial Law victims",
|
| 460 |
+
"human rights first",
|
| 461 |
+
"CHR matters",
|
| 462 |
+
"fact check muna",
|
| 463 |
+
"propaganda detector",
|
| 464 |
+
"akademiko tayo",
|
| 465 |
+
"Robredo admin",
|
| 466 |
+
"Vote wisely",
|
| 467 |
+
"hindi pa huli",
|
| 468 |
+
"madaming puso",
|
| 469 |
+
"serbisyong totoo",
|
| 470 |
+
"Comelec transparency",
|
| 471 |
+
"kontra sa dayaan",
|
| 472 |
+
"boto natin 'to",
|
| 473 |
+
"PinkLaban",
|
| 474 |
+
"pag-asa ng bayan",
|
| 475 |
+
"bukas na isip",
|
| 476 |
+
"anti-red-tagging",
|
| 477 |
+
"INC split", # electoral coalition discussion
|
| 478 |
+
"masa over masa",
|
| 479 |
+
"Leody-Leni",
|
| 480 |
+
"sama-sama tayo",
|
| 481 |
+
"Laban Leni",
|
| 482 |
+
]
|
| 483 |
+
LIBERAL_ANTI = [
|
| 484 |
+
# Anti-Duterte (mainstay of liberal discourse)
|
| 485 |
+
"extrajudicial killing",
|
| 486 |
+
"ejk",
|
| 487 |
+
"ej killing",
|
| 488 |
+
"duterte human rights",
|
| 489 |
+
"duterte impunity",
|
| 490 |
+
"duterte murders",
|
| 491 |
+
"drug war victims",
|
| 492 |
+
"tokhang victims",
|
| 493 |
+
"Dutertard",
|
| 494 |
+
"DDS-troll",
|
| 495 |
+
"Fentanyl",
|
| 496 |
+
"Davao Group",
|
| 497 |
+
"ICC-bound",
|
| 498 |
+
"Traydor",
|
| 499 |
+
"Kill kill kill",
|
| 500 |
+
"EJK-enabler",
|
| 501 |
+
"False prophet",
|
| 502 |
+
"Budol",
|
| 503 |
+
"Wumao",
|
| 504 |
+
"China-doll",
|
| 505 |
+
"POGO-protector",
|
| 506 |
+
"Kulto",
|
| 507 |
+
"Brainwashed",
|
| 508 |
+
"Violence-prone",
|
| 509 |
+
"Davao Dynasty",
|
| 510 |
+
"Mamatay-tao",
|
| 511 |
+
"Bastos",
|
| 512 |
+
"Digong-iyakin",
|
| 513 |
+
"Paid trolls",
|
| 514 |
+
"Fake news peddler",
|
| 515 |
+
"Tuta ng China",
|
| 516 |
+
"Digunggong",
|
| 517 |
+
"Bisakol (derogatory context)",
|
| 518 |
+
"Confidential funds queen",
|
| 519 |
+
"Impeachable",
|
| 520 |
+
"Threat to democracy",
|
| 521 |
+
"War on drugs failure",
|
| 522 |
+
"Galing Davao",
|
| 523 |
+
"Siga-siga",
|
| 524 |
+
"No respect for law",
|
| 525 |
+
"Human rights violator",
|
| 526 |
+
"Extra-judicial",
|
| 527 |
+
"Blind follower",
|
| 528 |
+
"DDS-shaming",
|
| 529 |
+
"Toxic",
|
| 530 |
+
"Divisionist",
|
| 531 |
+
"Feudal",
|
| 532 |
+
"Oust-Duterte",
|
| 533 |
+
"Dutertador", # Duterte + diktador
|
| 534 |
+
"diktador",
|
| 535 |
+
"pasistang rehimen",
|
| 536 |
+
"state-sponsored killing",
|
| 537 |
+
"EJK", # extra-judicial killing
|
| 538 |
+
"extra-judicial killing",
|
| 539 |
+
"dead on arrival", # EJK slang
|
| 540 |
+
"drug war patay",
|
| 541 |
+
"salvage victim",
|
| 542 |
+
"patayin ang mahirap",
|
| 543 |
+
"tokhang para sa mayaman",
|
| 544 |
+
"tulak pababa", # pushing down the poor
|
| 545 |
+
"gulat na gulat", # ironic shock at impunity
|
| 546 |
+
"impunidad",
|
| 547 |
+
"ICC isampa", # ICC filing demand
|
| 548 |
+
"idemanda si Duterte",
|
| 549 |
+
"war criminal",
|
| 550 |
+
"Davao Death Squad",
|
| 551 |
+
"DDS killer",
|
| 552 |
+
"Duterte resign",
|
| 553 |
+
"Duterte pababa",
|
| 554 |
+
"diktadurang Duterte",
|
| 555 |
+
"pinaslang",
|
| 556 |
+
"Duterte drug lord",
|
| 557 |
+
"narco list fake",
|
| 558 |
+
"red-tagging biktima",
|
| 559 |
+
"NTF-ELCAC terorista",
|
| 560 |
+
"baril batas", # "gun is the law" critique
|
| 561 |
+
"walang due process",
|
| 562 |
+
"peke na pagbabago",
|
| 563 |
+
"tuta ng China", # China appeasement critique
|
| 564 |
+
"nagbenta ng teritoryo",
|
| 565 |
+
"West Philippine Sea talunan",
|
| 566 |
+
"basura na pangako",
|
| 567 |
+
"sinungaling si Duterte",
|
| 568 |
+
"ABS-CBN shutdown",
|
| 569 |
+
"franchise denied",
|
| 570 |
+
"presyo tumaas",
|
| 571 |
+
"gutom sa ilalim ni Duterte",
|
| 572 |
+
"human rights patay",
|
| 573 |
+
# Anti-Marcos
|
| 574 |
+
"never forget martial law",
|
| 575 |
+
"hindi makakalimot",
|
| 576 |
+
"marcos plunder",
|
| 577 |
+
"marcos ill-gotten wealth",
|
| 578 |
+
"marcos human rights abuses",
|
| 579 |
+
"batas militar",
|
| 580 |
+
"martial law victims",
|
| 581 |
+
"diktadurang Marcos",
|
| 582 |
+
"Never Again Marcos",
|
| 583 |
+
"Martial Law atrocities",
|
| 584 |
+
"Marcos diktador",
|
| 585 |
+
"Ferdinand Marcos magnanakaw",
|
| 586 |
+
"ill-gotten wealth",
|
| 587 |
+
"nakawin ng Marcos",
|
| 588 |
+
"Marcos thief",
|
| 589 |
+
"PCGG asset",
|
| 590 |
+
"ibalik ang ninakaw",
|
| 591 |
+
"human rights abuses",
|
| 592 |
+
"desaparecido",
|
| 593 |
+
"torture victim Marcos",
|
| 594 |
+
"1081 batas militar",
|
| 595 |
+
"September 21 hindi kalimutan",
|
| 596 |
+
"Marcos burial laban",
|
| 597 |
+
"LNMB disgrasya",
|
| 598 |
+
"historical revisionist",
|
| 599 |
+
"fake news Marcos",
|
| 600 |
+
"propaganda ng Marcos",
|
| 601 |
+
"BBM bobo",
|
| 602 |
+
"BBM pasang-awa",
|
| 603 |
+
"grade fake BBM",
|
| 604 |
+
"Oxford dropout",
|
| 605 |
+
"hindi nagtapos",
|
| 606 |
+
"plunder case Marcos",
|
| 607 |
+
"tax evasion Marcos",
|
| 608 |
+
"hindi nagbayad ng buwis",
|
| 609 |
+
"Maharlika Fund scam",
|
| 610 |
+
"MIF panganib",
|
| 611 |
+
"Marcos crony",
|
| 612 |
+
"Enrile kasama",
|
| 613 |
+
"Sara Duterte traydor",
|
| 614 |
+
"UniTeam nagkahiwalay",
|
| 615 |
+
"Marcos-Duterte gulo",
|
| 616 |
+
"Solid North bulok",
|
| 617 |
+
"admin corruption",
|
| 618 |
+
"Malacanang sinungaling",
|
| 619 |
+
"BBM resign",
|
| 620 |
+
"Marcos pababa",
|
| 621 |
+
]
|
| 622 |
+
|
| 623 |
+
# Centrist / evidence-based signals
|
| 624 |
+
EVIDENCE_BASED_MARKERS = [
|
| 625 |
+
"ayon sa datos",
|
| 626 |
+
"according to official records",
|
| 627 |
+
"based on data",
|
| 628 |
+
"per official report",
|
| 629 |
+
"according to the commission",
|
| 630 |
+
"sinabi ng opisyal",
|
| 631 |
+
"ayon sa pag-aaral",
|
| 632 |
+
"studies show",
|
| 633 |
+
"data shows",
|
| 634 |
+
"statistics show",
|
| 635 |
+
"according to the survey",
|
| 636 |
+
"sinabi ng eksperto",
|
| 637 |
+
"expert said",
|
| 638 |
+
"peer-reviewed",
|
| 639 |
+
"official statement",
|
| 640 |
+
"press release",
|
| 641 |
+
"on record",
|
| 642 |
+
"verified by",
|
| 643 |
+
"fact-checked",
|
| 644 |
+
"source:",
|
| 645 |
+
"sources:",
|
| 646 |
+
"according to",
|
| 647 |
+
"as reported by",
|
| 648 |
+
"per the department",
|
| 649 |
+
"ayon sa palasyo",
|
| 650 |
+
"ayon sa doj",
|
| 651 |
+
"ayon sa comelec",
|
| 652 |
+
"ayon sa ched",
|
| 653 |
+
"ayon sa doh",
|
| 654 |
+
"ayon sa deped",
|
| 655 |
+
"transcript shows",
|
| 656 |
+
"court records",
|
| 657 |
+
"senate hearing",
|
| 658 |
+
"house hearing",
|
| 659 |
+
"plunder case",
|
| 660 |
+
"graft case",
|
| 661 |
+
"ombudsman",
|
| 662 |
+
]
|
| 663 |
+
|
| 664 |
+
|
| 665 |
+
# ββ Generic Left/Right Keywords (broader patterns) βββββββββββββββββββββββββββ
|
| 666 |
+
|
| 667 |
+
RIGHT_LEANING_KEYWORDS = [
|
| 668 |
+
"nagtagumpay",
|
| 669 |
+
"matagumpay",
|
| 670 |
+
"malaking tulong",
|
| 671 |
+
"pagbabago",
|
| 672 |
+
"disiplina",
|
| 673 |
+
"drug war",
|
| 674 |
+
"malasakit",
|
| 675 |
+
"build build build",
|
| 676 |
+
"matuwid",
|
| 677 |
+
"natatapos",
|
| 678 |
+
"pangako",
|
| 679 |
+
"nagpapatupad",
|
| 680 |
+
"achievements",
|
| 681 |
+
"anti-drug",
|
| 682 |
+
"anti-crime",
|
| 683 |
+
"peace and order",
|
| 684 |
+
"development",
|
| 685 |
+
"ekonomiya",
|
| 686 |
+
"destabilize",
|
| 687 |
+
"destabilization",
|
| 688 |
+
"oposisyon",
|
| 689 |
+
"anti-government",
|
| 690 |
+
"bias media",
|
| 691 |
+
"oligarch",
|
| 692 |
+
"propagandist",
|
| 693 |
+
"sovereignty",
|
| 694 |
+
"soberanya",
|
| 695 |
+
"traitor",
|
| 696 |
+
"worst traitor",
|
| 697 |
+
"national interest",
|
| 698 |
+
"patriotism",
|
| 699 |
+
"nationalist",
|
| 700 |
+
"faithful servant",
|
| 701 |
+
"servant of the people",
|
| 702 |
+
"wrongly accused",
|
| 703 |
+
"political persecution",
|
| 704 |
+
"political prisoner",
|
| 705 |
+
"legacy",
|
| 706 |
+
"icc persecution",
|
| 707 |
+
"he murdered no one",
|
| 708 |
+
"presumed innocent",
|
| 709 |
+
]
|
| 710 |
+
|
| 711 |
+
LEFT_LEANING_KEYWORDS = [
|
| 712 |
+
"human rights",
|
| 713 |
+
"extrajudicial",
|
| 714 |
+
"ej killing",
|
| 715 |
+
"ejk",
|
| 716 |
+
"impunity",
|
| 717 |
+
# 'corruption'/'korapsyon' removed β used by ALL political sides, causes false positives
|
| 718 |
+
# 'accountability'/'transparency' removed β same reason (universal talking points)
|
| 719 |
+
"press freedom",
|
| 720 |
+
"authoritarian",
|
| 721 |
+
"dictator",
|
| 722 |
+
"diktador",
|
| 723 |
+
"martial law",
|
| 724 |
+
"red-tagging",
|
| 725 |
+
"red tagging",
|
| 726 |
+
"activists",
|
| 727 |
+
"workers rights",
|
| 728 |
+
"labor rights",
|
| 729 |
+
"progressive",
|
| 730 |
+
"inequality",
|
| 731 |
+
"social justice",
|
| 732 |
+
"democratic space",
|
| 733 |
+
"civil liberties",
|
| 734 |
+
"dissent",
|
| 735 |
+
"political prisoners",
|
| 736 |
+
# Specific to liberal/left PH discourse
|
| 737 |
+
"disinformation", # kept β used more as anti-fake-news framing by left
|
| 738 |
+
"state-sponsored killing",
|
| 739 |
+
"oust",
|
| 740 |
+
"resign",
|
| 741 |
+
]
|
| 742 |
+
|
| 743 |
+
|
| 744 |
+
# ββ Unsourced Claim / "Blind Item" Signals βββββββββββββββββββββββββββββββββββ
|
| 745 |
+
#
|
| 746 |
+
# Fake news on Philippine Facebook often mimics showbiz blind items or
|
| 747 |
+
# "chismis" posts: dramatic claims made without named sources, often ending
|
| 748 |
+
# with prompts to share before the post is deleted.
|
| 749 |
+
|
| 750 |
+
UNSOURCED_CLAIM_SIGNALS = [
|
| 751 |
+
# Filipino hearsay markers β claim made but no named source
|
| 752 |
+
"daw",
|
| 753 |
+
"raw",
|
| 754 |
+
"diumano",
|
| 755 |
+
"umano",
|
| 756 |
+
"may nagsabi",
|
| 757 |
+
"may nagbalita",
|
| 758 |
+
"may nag-ulat",
|
| 759 |
+
"may nagpadala sa akin",
|
| 760 |
+
"may nagbigay ng impormasyon",
|
| 761 |
+
"may kilala akong",
|
| 762 |
+
"kilala ko ang nagbigay",
|
| 763 |
+
"mula sa isang pinagkakatiwalaang tao",
|
| 764 |
+
"mula sa reliable na source",
|
| 765 |
+
"reliable ang source",
|
| 766 |
+
"hindi ko maaaring ibigay ang pangalan",
|
| 767 |
+
"hindi maaaring ibunyag ang pangalan",
|
| 768 |
+
"hindi ko masasabi kung sino",
|
| 769 |
+
"ipinadala sa akin ng isang kaibigan",
|
| 770 |
+
# Verification-prompting phrases (signals the poster doubts authenticity)
|
| 771 |
+
"totoo kaya ito",
|
| 772 |
+
"tama ba ito",
|
| 773 |
+
"kung totoo ito",
|
| 774 |
+
"pag-isipan ninyo",
|
| 775 |
+
"nakaka-isip",
|
| 776 |
+
"nagtataka ako",
|
| 777 |
+
# Viral / share-baiting language
|
| 778 |
+
"share before deleted",
|
| 779 |
+
"i-share bago i-delete",
|
| 780 |
+
"share na bago tanggalin",
|
| 781 |
+
"bago pa tanggalin",
|
| 782 |
+
"delete na ito agad",
|
| 783 |
+
"wag palampasin",
|
| 784 |
+
"must share",
|
| 785 |
+
"share this now",
|
| 786 |
+
"share niyo",
|
| 787 |
+
"share before they take this down",
|
| 788 |
+
# Anonymous-source framing
|
| 789 |
+
"anonymous source",
|
| 790 |
+
"blind item",
|
| 791 |
+
"from a reliable source",
|
| 792 |
+
"sources say",
|
| 793 |
+
"sources told",
|
| 794 |
+
"a source revealed",
|
| 795 |
+
# English hearsay
|
| 796 |
+
"i heard that",
|
| 797 |
+
"i was told that",
|
| 798 |
+
"apparently",
|
| 799 |
+
"it is said that",
|
| 800 |
+
"rumor has it",
|
| 801 |
+
"parang totoo",
|
| 802 |
+
"unconfirmed reports",
|
| 803 |
+
"unverified",
|
| 804 |
+
"hindi pa kumpirmado",
|
| 805 |
+
"hindi pa confirmed",
|
| 806 |
+
"balita lang",
|
| 807 |
+
"chismis lang ito",
|
| 808 |
+
]
|
| 809 |
+
|
| 810 |
+
# Attribution markers β when PRESENT they REDUCE the unsourced claim score
|
| 811 |
+
ATTRIBUTION_MARKERS = [
|
| 812 |
+
"ayon sa",
|
| 813 |
+
"sabi ni",
|
| 814 |
+
"according to",
|
| 815 |
+
"stated by",
|
| 816 |
+
"as reported by",
|
| 817 |
+
"cited by",
|
| 818 |
+
"based on",
|
| 819 |
+
"sinabi ni",
|
| 820 |
+
"pahayag ni",
|
| 821 |
+
"per ",
|
| 822 |
+
"per president",
|
| 823 |
+
"per department",
|
| 824 |
+
"sinabi ng",
|
| 825 |
+
"inihayag ni",
|
| 826 |
+
"ipinagpaliwanag ni",
|
| 827 |
+
"idineklara ni",
|
| 828 |
+
"isinagawa ng",
|
| 829 |
+
"pinayagan ni",
|
| 830 |
+
"nagpahayag si",
|
| 831 |
+
"nagbigay ng pahayag si",
|
| 832 |
+
"nagsalita si",
|
| 833 |
+
"said ",
|
| 834 |
+
"announced ",
|
| 835 |
+
"confirmed ",
|
| 836 |
+
"stated ",
|
| 837 |
+
"declared ",
|
| 838 |
+
"officials say",
|
| 839 |
+
"government said",
|
| 840 |
+
"department said",
|
| 841 |
+
"report says",
|
| 842 |
+
"study says",
|
| 843 |
+
"survey says",
|
| 844 |
+
]
|
| 845 |
+
|
| 846 |
+
|
| 847 |
+
# ββ Sensationalism / Emotional Charge ββββββββββββββββββββββββββββββββββββββββ
|
| 848 |
+
|
| 849 |
+
SENSATIONAL_KEYWORDS = [
|
| 850 |
+
# Filipino
|
| 851 |
+
"grabe",
|
| 852 |
+
"sobrang",
|
| 853 |
+
"nakakatakot",
|
| 854 |
+
"nakakalungkot",
|
| 855 |
+
"kadiri",
|
| 856 |
+
"nakakagalit",
|
| 857 |
+
"buwag",
|
| 858 |
+
"gago",
|
| 859 |
+
"bobo",
|
| 860 |
+
"sinungaling",
|
| 861 |
+
"traydor",
|
| 862 |
+
"pahamak",
|
| 863 |
+
"palpak",
|
| 864 |
+
"basura",
|
| 865 |
+
"walang silbi",
|
| 866 |
+
"panalo",
|
| 867 |
+
"astig",
|
| 868 |
+
"idol",
|
| 869 |
+
"legend",
|
| 870 |
+
"must read",
|
| 871 |
+
"must watch",
|
| 872 |
+
"share",
|
| 873 |
+
"viral",
|
| 874 |
+
"breaking",
|
| 875 |
+
"just in",
|
| 876 |
+
"urgent",
|
| 877 |
+
"adik",
|
| 878 |
+
"NAPAKA",
|
| 879 |
+
# English β emotional/sensational
|
| 880 |
+
"shocking",
|
| 881 |
+
"outrageous",
|
| 882 |
+
"disgusting",
|
| 883 |
+
"horrifying",
|
| 884 |
+
"terrifying",
|
| 885 |
+
"devastating",
|
| 886 |
+
"despicable",
|
| 887 |
+
"abominable",
|
| 888 |
+
"deplorable",
|
| 889 |
+
"wickedness",
|
| 890 |
+
"depraved",
|
| 891 |
+
"stench",
|
| 892 |
+
"satan",
|
| 893 |
+
"evil",
|
| 894 |
+
"fire and fury",
|
| 895 |
+
"pipe dream",
|
| 896 |
+
"diatribe",
|
| 897 |
+
"harangue",
|
| 898 |
+
"perfidious",
|
| 899 |
+
"despairingly",
|
| 900 |
+
"intolerable",
|
| 901 |
+
"condemning",
|
| 902 |
+
"conspired",
|
| 903 |
+
"cronies",
|
| 904 |
+
"sham",
|
| 905 |
+
"scam",
|
| 906 |
+
"hoax",
|
| 907 |
+
"unbelievable",
|
| 908 |
+
"wake up",
|
| 909 |
+
"exposed",
|
| 910 |
+
"betrayed",
|
| 911 |
+
"rigged",
|
| 912 |
+
# Ad hominem
|
| 913 |
+
"vile",
|
| 914 |
+
"cunning",
|
| 915 |
+
"snake",
|
| 916 |
+
"poisoned",
|
| 917 |
+
"worst traitor",
|
| 918 |
+
"go down in history",
|
| 919 |
+
"day of reckoning",
|
| 920 |
+
"alarming",
|
| 921 |
+
"dangerous",
|
| 922 |
+
"coward",
|
| 923 |
+
"liar",
|
| 924 |
+
"hypocrite",
|
| 925 |
+
"shameless",
|
| 926 |
+
"corrupt",
|
| 927 |
+
"criminal",
|
| 928 |
+
"thief",
|
| 929 |
+
"incompetent",
|
| 930 |
+
"puppet",
|
| 931 |
+
"lapdog",
|
| 932 |
+
"traitor",
|
| 933 |
+
"backstabber",
|
| 934 |
+
"sellout",
|
| 935 |
+
"bankrupt",
|
| 936 |
+
"monster",
|
| 937 |
+
"villain",
|
| 938 |
+
"enemy of the people",
|
| 939 |
+
"enemy of the state",
|
| 940 |
+
"kakampi ng kaaway",
|
| 941 |
+
"tuta",
|
| 942 |
+
"duwag",
|
| 943 |
+
"magnanakaw",
|
| 944 |
+
"masamang tao",
|
| 945 |
+
]
|
| 946 |
+
|
| 947 |
+
# First-person / direct opinion markers
|
| 948 |
+
OPINION_MARKERS = [
|
| 949 |
+
"in my opinion",
|
| 950 |
+
"in my assessment",
|
| 951 |
+
"in my view",
|
| 952 |
+
"i believe",
|
| 953 |
+
"i think",
|
| 954 |
+
"my legal opinion",
|
| 955 |
+
"my honest thoughts",
|
| 956 |
+
"i personally",
|
| 957 |
+
"from my perspective",
|
| 958 |
+
"i am inclined to believe",
|
| 959 |
+
"i am inclined",
|
| 960 |
+
"i pray",
|
| 961 |
+
"i am almost certain",
|
| 962 |
+
"i am certain",
|
| 963 |
+
"i am convinced",
|
| 964 |
+
"i suspect",
|
| 965 |
+
"i feel",
|
| 966 |
+
"i hope",
|
| 967 |
+
"we must",
|
| 968 |
+
"we should",
|
| 969 |
+
"it is my",
|
| 970 |
+
"this writer believes",
|
| 971 |
+
"this columnist",
|
| 972 |
+
"in this writer",
|
| 973 |
+
"i have no doubt",
|
| 974 |
+
"without a doubt",
|
| 975 |
+
"clearly",
|
| 976 |
+
"obviously",
|
| 977 |
+
"needless to say",
|
| 978 |
+
# Filipino first-person
|
| 979 |
+
"sa aking palagay",
|
| 980 |
+
"sa tingin ko",
|
| 981 |
+
"naniniwala ako",
|
| 982 |
+
"sa aking paniniwala",
|
| 983 |
+
]
|
| 984 |
+
|
| 985 |
+
SUBJECTIVITY_THRESHOLD = 0.50
|
| 986 |
+
|
| 987 |
+
|
| 988 |
+
# ββ Helper functions ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 989 |
+
|
| 990 |
+
|
| 991 |
+
def _count_keyword_hits(text_lower, keyword_list):
|
| 992 |
+
"""Count how many keywords from the list appear in the text."""
|
| 993 |
+
hits = []
|
| 994 |
+
for kw in keyword_list:
|
| 995 |
+
if kw.lower() in text_lower:
|
| 996 |
+
hits.append(kw)
|
| 997 |
+
return hits
|
| 998 |
+
|
| 999 |
+
|
| 1000 |
+
def _analyze_sensationalism(text_lower):
|
| 1001 |
+
"""Detect sensationalist language patterns."""
|
| 1002 |
+
hits = _count_keyword_hits(text_lower, SENSATIONAL_KEYWORDS)
|
| 1003 |
+
exclamation_count = text_lower.count("!")
|
| 1004 |
+
question_chains = len(re.findall(r"\?{2,}", text_lower))
|
| 1005 |
+
caps_words = len(re.findall(r"\b[A-Z]{3,}\b", text_lower))
|
| 1006 |
+
|
| 1007 |
+
score = len(hits) * 2 + min(exclamation_count, 5) + question_chains * 2 + caps_words
|
| 1008 |
+
return score, hits
|
| 1009 |
+
|
| 1010 |
+
|
| 1011 |
+
def _detect_unsourced_claim(text_lower):
|
| 1012 |
+
"""Detect 'blind item' / chismis-style unsourced claims.
|
| 1013 |
+
|
| 1014 |
+
Returns (score, signals_found, attribution_count).
|
| 1015 |
+
High score + low attribution = likely unsourced fake news style.
|
| 1016 |
+
"""
|
| 1017 |
+
signals = _count_keyword_hits(text_lower, UNSOURCED_CLAIM_SIGNALS)
|
| 1018 |
+
attributions = _count_keyword_hits(text_lower, ATTRIBUTION_MARKERS)
|
| 1019 |
+
|
| 1020 |
+
# Raw score: each unsourced signal +2, each attribution -1 (floor 0)
|
| 1021 |
+
raw = len(signals) * 2
|
| 1022 |
+
credit = len(attributions)
|
| 1023 |
+
score = max(0, raw - credit)
|
| 1024 |
+
return score, signals, len(attributions)
|
| 1025 |
+
|
| 1026 |
+
|
| 1027 |
+
def _detect_obfuscation(text):
|
| 1028 |
+
"""Detect intentional misspelling / character substitution used to evade
|
| 1029 |
+
content moderation filters.
|
| 1030 |
+
|
| 1031 |
+
Fake news peddlers on Philippine social media commonly:
|
| 1032 |
+
1. Replace letters with look-alike symbols: \u0394\u2192a, @\u2192a inside words
|
| 1033 |
+
2. Use leet-speak digits: 3\u2192e, 0\u2192o, 1\u2192i inside words
|
| 1034 |
+
3. Phonetically misspell: 'manga' for 'mga', 'panu' for 'paano'
|
| 1035 |
+
4. Excessive ALL-CAPS beyond known government acronyms
|
| 1036 |
+
|
| 1037 |
+
Returns (score, signals_found). Score >= 2 is a reliable flag.
|
| 1038 |
+
"""
|
| 1039 |
+
signals = []
|
| 1040 |
+
|
| 1041 |
+
# 1. Explicit character substitutions β each hit is worth 2 points
|
| 1042 |
+
# (a single substitution is definitive; no need to wait for 2 signals)
|
| 1043 |
+
explicit_score = 0
|
| 1044 |
+
|
| 1045 |
+
# Delta family: U+2206 INCREMENT β, U+0394 GREEK DELTA Ξ,
|
| 1046 |
+
# U+25B3 WHITE TRIANGLE β³, U+25B2 BLACK TRIANGLE β²
|
| 1047 |
+
DELTA_CHARS = "\u2206\u0394\u25b3\u25b2"
|
| 1048 |
+
delta_hits = sum(text.count(c) for c in DELTA_CHARS)
|
| 1049 |
+
if delta_hits:
|
| 1050 |
+
signals.append(f"\u2206/\u0394 used as letter \u00d7 {delta_hits}")
|
| 1051 |
+
explicit_score += 2
|
| 1052 |
+
|
| 1053 |
+
# Degree symbol \u00b0 used as 'o' (e.g. 'tunt\u00b0' = 'tunto')
|
| 1054 |
+
degree_hits = text.count("\u00b0")
|
| 1055 |
+
if degree_hits:
|
| 1056 |
+
signals.append(f"\u00b0 used as letter \u00d7 {degree_hits}")
|
| 1057 |
+
explicit_score += 2
|
| 1058 |
+
|
| 1059 |
+
# @ inside a word as 'a' substitution (not an email address)
|
| 1060 |
+
at_in_word = len(re.findall(r"\w@\w", text))
|
| 1061 |
+
if at_in_word:
|
| 1062 |
+
signals.append(f"@ inside word \u00d7 {at_in_word}")
|
| 1063 |
+
explicit_score += 2
|
| 1064 |
+
|
| 1065 |
+
# Other single-char Latin letter substitutions: Β‘\u2192i, \u00f8\u2192o, \u00a5\u2192y, \u20ac\u2192e
|
| 1066 |
+
for ch, label in [
|
| 1067 |
+
("\u00a1", "\u00a1\u2192i"),
|
| 1068 |
+
("\u00f8", "\u00f8\u2192o"),
|
| 1069 |
+
("\u00a5", "\u00a5\u2192y"),
|
| 1070 |
+
("\u20ac", "\u20ac\u2192e"),
|
| 1071 |
+
("\u00a2", "\u00a2\u2192c"),
|
| 1072 |
+
("\u00a3", "\u00a3\u2192b"),
|
| 1073 |
+
]:
|
| 1074 |
+
if ch in text:
|
| 1075 |
+
signals.append(f"'{label}' substitution")
|
| 1076 |
+
explicit_score += 2
|
| 1077 |
+
|
| 1078 |
+
# Generic non-ASCII scan (weak signal β only add if no explicit sub found)
|
| 1079 |
+
non_ascii = len(re.findall(r"[^\x00-\x7F]", text))
|
| 1080 |
+
if non_ascii > 0 and explicit_score == 0 and 1 < non_ascii <= 20:
|
| 1081 |
+
signals.append(f"non-ASCII chars in Latin text \u00d7 {non_ascii}")
|
| 1082 |
+
|
| 1083 |
+
# 2. Leet-speak: digits inside words (e.g. 'm4rcos', '3JK')
|
| 1084 |
+
leet_words = [
|
| 1085 |
+
w for w in re.findall(r"\b\w*[30145]\w*\b", text) if re.search(r"[a-zA-Z]", w)
|
| 1086 |
+
]
|
| 1087 |
+
if len(leet_words) >= 2:
|
| 1088 |
+
signals.append(f"leet digits in words: {leet_words[:4]}")
|
| 1089 |
+
|
| 1090 |
+
# 3. Known Filipino phonetic misspells / slang markers
|
| 1091 |
+
PHONETIC = [
|
| 1092 |
+
(r"\bmanga\b", "'manga' for 'mga'"),
|
| 1093 |
+
(r"\bkau\b", "'kau' for 'kayo'"),
|
| 1094 |
+
(r"\bnman\b", "'nman' for 'naman'"),
|
| 1095 |
+
(r"\bpanu\b", "'panu' for 'paano'"),
|
| 1096 |
+
(r"\bganun\b", "'ganun' for 'ganoon'"),
|
| 1097 |
+
(r"\bbeh\b", "'beh' informal"),
|
| 1098 |
+
(r"\bteh\b", "'teh' informal"),
|
| 1099 |
+
(r"\bchar\b", "'char' joke marker"),
|
| 1100 |
+
(r"\bOMG\b", "'OMG' exclamation"),
|
| 1101 |
+
(r"\bWTF\b", "profane exclamation"),
|
| 1102 |
+
]
|
| 1103 |
+
tl = text.lower()
|
| 1104 |
+
for pat, label in PHONETIC:
|
| 1105 |
+
if re.search(pat, tl):
|
| 1106 |
+
signals.append(label)
|
| 1107 |
+
|
| 1108 |
+
# 4. Excessive ALL-CAPS beyond standard government acronyms
|
| 1109 |
+
LEGIT_CAPS = {
|
| 1110 |
+
"PNP",
|
| 1111 |
+
"AFP",
|
| 1112 |
+
"DOH",
|
| 1113 |
+
"COMELEC",
|
| 1114 |
+
"CHR",
|
| 1115 |
+
"DOJ",
|
| 1116 |
+
"OMB",
|
| 1117 |
+
"DILG",
|
| 1118 |
+
"DSWD",
|
| 1119 |
+
"CHED",
|
| 1120 |
+
"DEPED",
|
| 1121 |
+
"DOE",
|
| 1122 |
+
"DBM",
|
| 1123 |
+
"BIR",
|
| 1124 |
+
"PSA",
|
| 1125 |
+
"BSP",
|
| 1126 |
+
"SEC",
|
| 1127 |
+
"LTO",
|
| 1128 |
+
"LTFRB",
|
| 1129 |
+
"MMDA",
|
| 1130 |
+
"NBI",
|
| 1131 |
+
"NASA",
|
| 1132 |
+
"FBI",
|
| 1133 |
+
"CIA",
|
| 1134 |
+
"USA",
|
| 1135 |
+
"PH",
|
| 1136 |
+
"OVP",
|
| 1137 |
+
"ICC",
|
| 1138 |
+
"DNA",
|
| 1139 |
+
"HIV",
|
| 1140 |
+
"WHO",
|
| 1141 |
+
"WFP",
|
| 1142 |
+
"ASEAN",
|
| 1143 |
+
"UN",
|
| 1144 |
+
"DDS",
|
| 1145 |
+
"BBM",
|
| 1146 |
+
"PBBM",
|
| 1147 |
+
"VP",
|
| 1148 |
+
"SWS",
|
| 1149 |
+
"PCSO",
|
| 1150 |
+
"PAGCOR",
|
| 1151 |
+
"EJK",
|
| 1152 |
+
"PRRD",
|
| 1153 |
+
"AFP",
|
| 1154 |
+
}
|
| 1155 |
+
suspicious_caps = [
|
| 1156 |
+
w for w in re.findall(r"\b[A-Z]{3,}\b", text) if w not in LEGIT_CAPS
|
| 1157 |
+
]
|
| 1158 |
+
if len(suspicious_caps) >= 3:
|
| 1159 |
+
signals.append(f"excessive ALL-CAPS: {suspicious_caps[:5]}")
|
| 1160 |
+
# Heavy ALL-CAPS (β₯ 8 non-acronym caps words) alone is a strong social-media
|
| 1161 |
+
# obfuscation signal β real journalism never shouts entire sentences in caps.
|
| 1162 |
+
# Boost explicit_score so the flag triggers even without β/leet/@ substitutions.
|
| 1163 |
+
if len(suspicious_caps) >= 8:
|
| 1164 |
+
explicit_score += 2
|
| 1165 |
+
|
| 1166 |
+
score = explicit_score + len(signals) - (1 if explicit_score > 0 else 0)
|
| 1167 |
+
# ^ explicit hits already added to score; subtract 1 to avoid counting their
|
| 1168 |
+
# signal string twice (each explicit hit already contributes to len(signals))
|
| 1169 |
+
# Simplify: final score = explicit_score + non-explicit signal count
|
| 1170 |
+
non_explicit_signals = [
|
| 1171 |
+
s
|
| 1172 |
+
for s in signals
|
| 1173 |
+
if not any(
|
| 1174 |
+
k in s
|
| 1175 |
+
for k in ["\u2206", "\u0394", "\u00b0", "@", "substitution", "non-ASCII"]
|
| 1176 |
+
)
|
| 1177 |
+
]
|
| 1178 |
+
score = explicit_score + len(non_explicit_signals)
|
| 1179 |
+
return score, signals
|
| 1180 |
+
|
| 1181 |
+
|
| 1182 |
+
def _compute_subjectivity(text):
|
| 1183 |
+
"""Compute subjectivity score using TextBlob (0=objective, 1=subjective)."""
|
| 1184 |
+
try:
|
| 1185 |
+
return TextBlob(text).sentiment.subjectivity
|
| 1186 |
+
except Exception:
|
| 1187 |
+
return 0.0
|
| 1188 |
+
|
| 1189 |
+
|
| 1190 |
+
def _compute_vader_sentiment(text):
|
| 1191 |
+
"""Compute VADER sentiment intensity."""
|
| 1192 |
+
try:
|
| 1193 |
+
return _vader.polarity_scores(text)
|
| 1194 |
+
except Exception:
|
| 1195 |
+
return {"compound": 0.0, "pos": 0.0, "neu": 1.0, "neg": 0.0}
|
| 1196 |
+
|
| 1197 |
+
|
| 1198 |
+
def _score_political_figures(text_lower):
|
| 1199 |
+
"""Score political figure sentiment for Philippine context.
|
| 1200 |
+
|
| 1201 |
+
Returns (conservative_score, admin_score, liberal_score, figure_hits).
|
| 1202 |
+
"""
|
| 1203 |
+
cons_pro = _count_keyword_hits(text_lower, CONSERVATIVE_PRO)
|
| 1204 |
+
cons_anti = _count_keyword_hits(text_lower, CONSERVATIVE_ANTI)
|
| 1205 |
+
adm_pro = _count_keyword_hits(text_lower, ADMIN_PRO)
|
| 1206 |
+
adm_anti = _count_keyword_hits(text_lower, ADMIN_ANTI)
|
| 1207 |
+
lib_pro = _count_keyword_hits(text_lower, LIBERAL_PRO)
|
| 1208 |
+
lib_anti = _count_keyword_hits(text_lower, LIBERAL_ANTI)
|
| 1209 |
+
evidence = _count_keyword_hits(text_lower, EVIDENCE_BASED_MARKERS)
|
| 1210 |
+
|
| 1211 |
+
# Net scores: positive praise - negative criticism signals the faction leaning
|
| 1212 |
+
conservative_score = len(cons_pro) * 2 + len(cons_anti) * 1
|
| 1213 |
+
admin_score = len(adm_pro) * 2 + len(adm_anti) * 1
|
| 1214 |
+
liberal_score = len(lib_pro) * 2 + len(lib_anti) * 1
|
| 1215 |
+
evidence_score = len(evidence)
|
| 1216 |
+
|
| 1217 |
+
figure_hits = {
|
| 1218 |
+
"conservative_pro": cons_pro,
|
| 1219 |
+
"conservative_anti": cons_anti,
|
| 1220 |
+
"admin_pro": adm_pro,
|
| 1221 |
+
"admin_anti": adm_anti,
|
| 1222 |
+
"liberal_pro": lib_pro,
|
| 1223 |
+
"liberal_anti": lib_anti,
|
| 1224 |
+
"evidence_markers": evidence,
|
| 1225 |
+
}
|
| 1226 |
+
return conservative_score, admin_score, liberal_score, evidence_score, figure_hits
|
| 1227 |
+
|
| 1228 |
+
|
| 1229 |
+
# ββ Main function βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 1230 |
+
|
| 1231 |
+
|
| 1232 |
+
def analyze_bias(text, pattern_deviation=None, lang="en"):
|
| 1233 |
+
|
| 1234 |
+
"""Analyze a news article for political bias and subjectivity.
|
| 1235 |
+
|
| 1236 |
+
Args:
|
| 1237 |
+
text (str): Article text.
|
| 1238 |
+
pattern_deviation (dict|None): Result from compare_to_external_pattern().
|
| 1239 |
+
When provided, deviation from reputable sources directly boosts
|
| 1240 |
+
sensationalism score and leaning confidence β making pattern deviation
|
| 1241 |
+
a primary signal rather than a post-hoc annotation.
|
| 1242 |
+
|
| 1243 |
+
Returns:
|
| 1244 |
+
dict with keys:
|
| 1245 |
+
leaning: "Conservative", "Admin/Right", "Left-leaning", or "Centrist"
|
| 1246 |
+
is_biased: bool β True if clearly leaning or sensational
|
| 1247 |
+
unsourced_claim: bool β True if article appears to be a blind item / chismis
|
| 1248 |
+
unsourced_score: int β raw unsourced claim score
|
| 1249 |
+
subjectivity: float (0-1)
|
| 1250 |
+
subjectivity_flag: bool
|
| 1251 |
+
vader_compound: float
|
| 1252 |
+
vader_biased: bool
|
| 1253 |
+
confidence: float (0-1)
|
| 1254 |
+
pattern_deviation_verdict: str β "FOLLOWS PATTERN", "MINOR DEVIATION", "SIGNIFICANT DEVIATION", or ""
|
| 1255 |
+
deviation_score: float β 0.0β1.0 fraction of sentences not in reputable sources
|
| 1256 |
+
details: dict with full breakdown
|
| 1257 |
+
"""
|
| 1258 |
+
if not text or not isinstance(text, str) or len(text.strip()) < 20:
|
| 1259 |
+
return {
|
| 1260 |
+
"leaning": "Centrist",
|
| 1261 |
+
"is_biased": False,
|
| 1262 |
+
"unsourced_claim": False,
|
| 1263 |
+
"unsourced_score": 0,
|
| 1264 |
+
"obfuscated_text": False,
|
| 1265 |
+
"obfuscation_score": 0,
|
| 1266 |
+
"subjectivity": 0.0,
|
| 1267 |
+
"subjectivity_flag": False,
|
| 1268 |
+
"vader_compound": 0.0,
|
| 1269 |
+
"vader_biased": False,
|
| 1270 |
+
"confidence": 0.0,
|
| 1271 |
+
"details": {"note": "Text too short for analysis"},
|
| 1272 |
+
}
|
| 1273 |
+
|
| 1274 |
+
text_lower = text.lower()
|
| 1275 |
+
|
| 1276 |
+
# ββ Generic keyword matching ββ
|
| 1277 |
+
right_hits = _count_keyword_hits(text_lower, RIGHT_LEANING_KEYWORDS)
|
| 1278 |
+
left_hits = _count_keyword_hits(text_lower, LEFT_LEANING_KEYWORDS)
|
| 1279 |
+
sensationalism_score, sensational_hits = _analyze_sensationalism(text_lower)
|
| 1280 |
+
opinion_hits = _count_keyword_hits(text_lower, OPINION_MARKERS)
|
| 1281 |
+
sensationalism_score += len(opinion_hits) * 3
|
| 1282 |
+
|
| 1283 |
+
right_score = len(right_hits)
|
| 1284 |
+
left_score = len(left_hits)
|
| 1285 |
+
|
| 1286 |
+
# ββ Philippine political figure scoring ββ
|
| 1287 |
+
conservative_score, admin_score, liberal_score, evidence_score, figure_hits = (
|
| 1288 |
+
_score_political_figures(text_lower)
|
| 1289 |
+
)
|
| 1290 |
+
|
| 1291 |
+
# Fold figure scores into left/right totals
|
| 1292 |
+
right_score += conservative_score + admin_score
|
| 1293 |
+
left_score += liberal_score
|
| 1294 |
+
|
| 1295 |
+
# Evidence-based writing can push toward centrist
|
| 1296 |
+
centrist_boost = evidence_score
|
| 1297 |
+
|
| 1298 |
+
# ββ Unsourced claim / blind item detection ββ
|
| 1299 |
+
unsourced_score, unsourced_signals, attribution_count = _detect_unsourced_claim(
|
| 1300 |
+
text_lower
|
| 1301 |
+
)
|
| 1302 |
+
unsourced_flag = unsourced_score >= 4 # threshold: 2+ signals with few attributions
|
| 1303 |
+
if unsourced_flag:
|
| 1304 |
+
sensationalism_score += 2 # unsourced claims are a sensationalism signal
|
| 1305 |
+
|
| 1306 |
+
# ββ Obfuscation / intentional misspell detection ββ
|
| 1307 |
+
obfuscation_score, obfuscation_signals = _detect_obfuscation(text)
|
| 1308 |
+
obfuscated_flag = obfuscation_score >= 2
|
| 1309 |
+
if obfuscated_flag:
|
| 1310 |
+
sensationalism_score += min(3, obfuscation_score) # boost but cap contribution
|
| 1311 |
+
|
| 1312 |
+
# ββ Subjectivity ββ
|
| 1313 |
+
subjectivity = _compute_subjectivity(text)
|
| 1314 |
+
subjectivity_flag = subjectivity > SUBJECTIVITY_THRESHOLD
|
| 1315 |
+
|
| 1316 |
+
# ββ VADER sentiment ββ
|
| 1317 |
+
vader_scores = _compute_vader_sentiment(text)
|
| 1318 |
+
vader_compound = vader_scores["compound"]
|
| 1319 |
+
VADER_BIAS_THRESHOLD = 0.5
|
| 1320 |
+
vader_biased = abs(vader_compound) >= VADER_BIAS_THRESHOLD
|
| 1321 |
+
if vader_biased:
|
| 1322 |
+
sensationalism_score += 3
|
| 1323 |
+
|
| 1324 |
+
# ββ Pattern deviation boost (primary signal when available) ββββββββββββββββ
|
| 1325 |
+
# Deviation from reputable external sources is treated as a strong bias
|
| 1326 |
+
# indicator: articles that add claims not found in any credible source are
|
| 1327 |
+
# more likely to be biased or sensationalized, regardless of keyword matches.
|
| 1328 |
+
pd_verdict = (pattern_deviation or {}).get("verdict", "")
|
| 1329 |
+
pd_score = (pattern_deviation or {}).get("deviation_score", 0.0)
|
| 1330 |
+
pd_confidence_boost = 0.0
|
| 1331 |
+
|
| 1332 |
+
if pd_verdict == "SIGNIFICANT DEVIATION":
|
| 1333 |
+
sensationalism_score += 3 # strong signal: adds claims no credible source reports
|
| 1334 |
+
pd_confidence_boost = 0.08 # more certain about the detected leaning
|
| 1335 |
+
elif pd_verdict == "MINOR DEVIATION":
|
| 1336 |
+
sensationalism_score += 1 # mild signal
|
| 1337 |
+
|
| 1338 |
+
# ββ Determine leaning ββ
|
| 1339 |
+
total_political = right_score + left_score
|
| 1340 |
+
bias_threshold = 3 # raised slightly since we now have more signal sources
|
| 1341 |
+
|
| 1342 |
+
# Centrist boost: strong evidence markers counteract weak political scores
|
| 1343 |
+
effective_political = max(0, total_political - centrist_boost)
|
| 1344 |
+
|
| 1345 |
+
if effective_political < bias_threshold and sensationalism_score < 4:
|
| 1346 |
+
leaning = "Centrist"
|
| 1347 |
+
confidence = 0.6 + min(0.3, (bias_threshold - effective_political) * 0.1)
|
| 1348 |
+
elif right_score > left_score:
|
| 1349 |
+
# Distinguish Conservative (Duterte-camp) vs Admin/Right (Marcos-camp)
|
| 1350 |
+
if conservative_score >= admin_score:
|
| 1351 |
+
leaning = "Conservative"
|
| 1352 |
+
else:
|
| 1353 |
+
leaning = "Admin/Right"
|
| 1354 |
+
diff = right_score - left_score
|
| 1355 |
+
confidence = min(0.95, 0.5 + diff * 0.08 + sensationalism_score * 0.02 + pd_confidence_boost)
|
| 1356 |
+
elif left_score > right_score:
|
| 1357 |
+
leaning = "Left-leaning"
|
| 1358 |
+
diff = left_score - right_score
|
| 1359 |
+
confidence = min(0.95, 0.5 + diff * 0.08 + sensationalism_score * 0.02 + pd_confidence_boost)
|
| 1360 |
+
else:
|
| 1361 |
+
leaning = "Centrist"
|
| 1362 |
+
confidence = 0.45 if sensationalism_score >= 4 else 0.7
|
| 1363 |
+
|
| 1364 |
+
is_biased = (
|
| 1365 |
+
(leaning != "Centrist")
|
| 1366 |
+
or subjectivity_flag
|
| 1367 |
+
or sensationalism_score >= 4
|
| 1368 |
+
or vader_biased
|
| 1369 |
+
or unsourced_flag
|
| 1370 |
+
or obfuscated_flag
|
| 1371 |
+
)
|
| 1372 |
+
|
| 1373 |
+
return {
|
| 1374 |
+
"leaning": leaning,
|
| 1375 |
+
"is_biased": is_biased,
|
| 1376 |
+
"unsourced_claim": unsourced_flag,
|
| 1377 |
+
"unsourced_score": unsourced_score,
|
| 1378 |
+
"obfuscated_text": obfuscated_flag,
|
| 1379 |
+
"obfuscation_score": obfuscation_score,
|
| 1380 |
+
"subjectivity": round(subjectivity, 4),
|
| 1381 |
+
"subjectivity_flag": subjectivity_flag,
|
| 1382 |
+
"vader_compound": round(vader_compound, 4),
|
| 1383 |
+
"vader_biased": vader_biased,
|
| 1384 |
+
"confidence": round(min(confidence, 1.0), 4),
|
| 1385 |
+
"pattern_deviation_verdict": pd_verdict,
|
| 1386 |
+
"deviation_score": round(pd_score, 4),
|
| 1387 |
+
"details": {
|
| 1388 |
+
"left_keywords": left_hits,
|
| 1389 |
+
"right_keywords": right_hits,
|
| 1390 |
+
"sensational_keywords": sensational_hits,
|
| 1391 |
+
"opinion_markers": opinion_hits,
|
| 1392 |
+
"unsourced_signals": unsourced_signals,
|
| 1393 |
+
"attribution_count": attribution_count,
|
| 1394 |
+
"obfuscation_signals": obfuscation_signals,
|
| 1395 |
+
"figure_hits": figure_hits,
|
| 1396 |
+
"left_score": left_score,
|
| 1397 |
+
"right_score": right_score,
|
| 1398 |
+
"conservative_score": conservative_score,
|
| 1399 |
+
"admin_score": admin_score,
|
| 1400 |
+
"liberal_score": liberal_score,
|
| 1401 |
+
"evidence_score": evidence_score,
|
| 1402 |
+
"sensationalism_score": sensationalism_score,
|
| 1403 |
+
"pattern_deviation_verdict": pd_verdict,
|
| 1404 |
+
"deviation_score": round(pd_score, 4),
|
| 1405 |
+
},
|
| 1406 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|