@@ -34,6 +34,9 @@ function tags(claim: string): string[] {
3434 const t : string [ ] = [ ] , l = claim . toLowerCase ( ) ;
3535 if ( / n e v e r | a l w a y s | 1 0 0 % | g u a r a n t e e d / . test ( l ) ) t . push ( "Absolut-Language" ) ;
3636 if ( / s h o c k i n g | b r e a k i n g | r e v e a l e d | e x p o s e d | a l e r t | n e v e r t o l d | h i d d e n t r u t h / . test ( l ) ) t . push ( "Sensationalism" ) ;
37+ if ( / i g n o r e .{ 0 , 20 } i n s t r u c t i o n | r e t u r n .{ 0 , 20 } w i s e _ s c o r e | s y s t e m p r o m p t | j a i l b r e a k / . test ( l ) ) t . push ( "Injection-Attempt" ) ;
38+ if ( / ^ \s * [ { [ ] / . test ( claim . trim ( ) ) ) t . push ( "Injection-Attempt" ) ;
39+ if ( / m o s t i m p o r t a n t .{ 0 , 20 } h i s t o r y | g r e a t e s t .{ 0 , 20 } e v e r | c h a n g e .{ 0 , 20 } e v e r y t h i n g f o r e v e r / . test ( l ) ) t . push ( "Superlativ-Hype" ) ;
3740 if ( / c o n s p i r a c y | h o a x | c o v e r .? u p / . test ( l ) ) t . push ( "Conspiracy" ) ;
3841 if ( / f e a r | d a n g e r | c r i s i s | e m e r g e n c y / . test ( l ) ) t . push ( "Fear-Language" ) ;
3942 if ( / 1 0 x | 1 0 0 x | m o o n | r o c k e t / . test ( l ) ) t . push ( "Hype" ) ;
@@ -56,7 +59,7 @@ export default async (req: Request, _ctx: Context) => {
5659 const pen = AMP [ amplification . toLowerCase ( ) ] ?? 1.0 ;
5760 const sg = tags ( claim ) ; const tp = 1 - sg . length * 0.06 ;
5861 const sc = sCon ( claim ) ; const ps = psi ( claim ) ;
59- const comboFactor = ( ( sg . includes ( "Conspiracy" ) || sg . includes ( "Absolut-Language" ) ) && sg . includes ( "Sensationalism" ) ) ? 0.12 : 1.0 ;
62+ const comboFactor = ( sg . includes ( "Injection-Attempt" ) || ( ( sg . includes ( "Conspiracy" ) || sg . includes ( "Absolut-Language" ) ) && sg . includes ( "Sensationalism" ) ) ) ? 0.12 : 1.0 ;
6063 const t = Math . max ( 0.1 , bt * pen * tp * comboFactor ) , c = Math . max ( 0.1 , bc * ( 0.5 + sc * 0.5 ) * comboFactor ) ;
6164 const r = Math . max ( 0.1 , br * ps ) , e = Math . max ( 0.1 , be * pen * comboFactor ) ;
6265 const ws = t * c * r * e ;
0 commit comments