lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Auto-detect language when no language is provided when posting

Open buresdv opened this issue 1 year ago • 4 comments

Is your proposal related to a problem?

When using the API, I've discovered that you are sometimes required to set the correct language when attempting to post (related to #2869). This means that some API requests might fail.

Describe the solution you'd like

A solution could be to have the backend recognize a post's language in case one isn't provided with the API request / set in the UI. This can be optional.

Describe alternatives you've considered

One solution that I wanted to use for Mlem was to use the iPhone's on-devide neural cores to detect a language of a post and automatically set it for each API request. This is, however, somewhat energy-draining and takes time, which is detrimental to the UX of the app. It is also extra work that is probably better suited for the backend, considering that a server has more computational power than a phone.

Additional context

None.

buresdv avatar May 22 '23 07:05 buresdv