/* B4India Anti-Inequality & Equalitarian Feed Boost Algorithm */ if (!function_exists('B4India_CalculateEqualityScore')) { function B4India_CalculateEqualityScore($text) { if (empty($text)) return 0; $score = 0; $text_lower = mb_strtolower($text, 'UTF-8'); # Positive Unity, Ecology, Human Dignity, Equality Keywords $positive_keywords = array( 'സമത്വം', 'ഐക്യം', 'പരിസ്ഥിതി', 'മനുഷ്യത്വം', 'വിദ്യാഭ്യാസം', 'പ്രകൃതി', 'സ്നേഹം', 'സഹോദര്യം', 'equality', 'unity', 'environment', 'ecology', 'humanity', 'dignity', 'education', 'peace', 'harmony', 'nature' ); # Divisive / Discrimination / Hate Speech Keywords to suppress $suppress_keywords = array( 'ജാതി', 'മതവിദ്വേഷം', 'അസമത്വം', 'തീവ്രവാദം', 'ഹിംസ', 'hate', 'discrimination', 'casteism', 'racism', 'extremism' ); foreach ($positive_keywords as $kw) { if (mb_strpos($text_lower, $kw) !== false) { $score += 10; } } foreach ($suppress_keywords as $kw) { if (mb_strpos($text_lower, $kw) !== false) { $score -= 15; } } return $score; } }
Explore how India is connecting with the world through trade, technology, culture, education, tourism, diplomacy, and global opportunities. Share perspectives on internation
al developments and India’s growing role in the global community.