-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Filter out false-positives with lingua-go
Sometimes people forget to switch back to English when posting. This causes the feed to contain a lot of English language posts. We can use the lingua-go library to help us filter out false positives. If the post is tagged as no, nb, or nn we use lingua-go to detect if this is either bokmål or nynorsk. If not we don't add it to the feed database. This should be reasonably performant as we're only testing the posts tagged as Norwegian. We are not testing Samii posts as lingua-go does not have detection for that today.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters