• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / Iznik / 27630
72%
master: 72%

Build:
Build:
LAST BUILD BRANCH: fix/modtools-landscape-layout-9935-1
DEFAULT BRANCH: master
Ran 18 Jul 2026 05:55AM UTC
Jobs 3
Files 1418
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 05:42AM UTC coverage: 72.656%. First build
27630

Pull #1105

circleci

edwh
fix(moderation): replace trigram language detector with ELD to stop false "foreign language" flags

The content-check language filter used patrickschur/language-detection, a
character-trigram model that scores character-frequency profiles, not words. On
short, list-style Freegle posts (item / condition / collection lines) it mis-ranked
plain English as a Latinate language and flagged it as foreign (Discourse #9919: an
all-English-words post flagged as French), while genuine foreign posts sometimes
ranked English close behind and slipped through. Tuning the accept ratio (#1103,
0.9->0.8) only slides that see-saw, and demonstrably lets more foreign spam through.

Swap both detection paths (ContentCheckService + Mail/Incoming/SpamCheckService) to
nitotm/efficient-language-detector (ELD): it picks the correct top language on short
text and exposes isReliable(), so we flag only when confident the text is neither
English nor Welsh, and leave ambiguous short text alone. Native PHP, no sidecar.
Empirically 0 false-positive / 0 false-negative on the failing cases.

Supersedes #1103.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQZ56NwFYEuhrtaoU7oYoM
Pull Request #1105: fix(moderation): ELD language detector — stop false 'foreign language' flags (9919, supersedes #1103)

12608 of 14554 branches covered (86.63%)

Branch coverage included in aggregate %.

18 of 19 new or added lines in 2 files covered. (94.74%)

137835 of 192507 relevant lines covered (71.6%)

37.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
82.09
iznik-batch/app/Services/Mail/Incoming/SpamCheckService.php
Jobs
ID Job ID Ran Files Coverage
27630 laravel - 27630 18 Jul 2026 05:55AM UTC 499
69.25
CircleCI Job 27630
27630 vitest - 27630 18 Jul 2026 05:55AM UTC 762
70.51
CircleCI Job 27630
27630 go - 27630 18 Jul 2026 05:55AM UTC 157
83.56
CircleCI Job 27630
Source Files on build 27630
  • Tree
  • List 1418
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #27630
  • Pull Request #1105
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc