anze3db / fedidevs

Discover amazing developers across the fediverse 🌐
https://fedidevs.com
MIT License
26 stars 6 forks source link

Filter accounts by (spoken) language #24

Open anze3db opened 8 months ago

anze3db commented 8 months ago

It would be great to be able to filter accounts by the language that they speak/write. To resolve this we'd need to do the following:

  1. Find a Python library/3rd party API for detecting language from text.
  2. Run the detection on people's BIOs and their posts and save the results in a filter table.
  3. Add the UI to filter accounts/posts by spoken language.
anze3db commented 3 months ago

We use openai to classify accounts. Maybe we could change it so that AI could also try to guess the users language: https://github.com/anze3db/fedidevs/blob/main/accounts/management/commands/classify.py