What are the best practices to handle languages on notes? Is this implemented on the protocol level or is it something a client should care of?

For example I'm wondering how I can filter notes and other events on just a specific language. Finding content in my native language is really hard at the moment.

I've found these related NIP proposals (I'm also a Mastodon user):

https://github.com/nostr-protocol/nips/pull/632

This seems somewhat more complicated and it's only the relay which can set the language for a specific event? I think it should be set by user / client and the relay feedback could be used as a fallback (but on the other hand: this makes relay smarter which have to kept as dumb as possible).

https://github.com/arthurfranca/nips/blob/nip-17/17.md#language

#askNostr #devNostr #NostrDev

Reply to this note

Please Login to reply.

Discussion

as long as it is not merged and adopted by clients and relays (only as filter attribute!) you're stuck to e.g. tagging your text with country symbols, e.g.

๐Ÿ‡ฉ๐Ÿ‡ช aber was da angezeigt wird, hรคngt von der plattform ab. ๐Ÿ˜

I support this ๐Ÿ’ฏ

Repost ๐Ÿฅธ

nostr:note1fhjxk25432fmk307vg4xkysvh6epps5ktvxakap0npxsxztkm4qq7lfafy

We have to filter and classify on our own since no guideline probably to cover that ๐Ÿ˜…

Hmm I do like NIP-37 as a possible solution..

A lot of (think) work is already done with ActivityPub

Ideally, it needs to be implemented in some clients as part of their on-boarding process. Unfortunately, i think most clients even don't have clear/good on-boarding steps for new users. If user can pick their language preference (speak) correctly then we can use those with NIP-32 to include language tag in each notes. ๐Ÿ˜…

Thatโ€™s a way indeed (NIP-32)

Also selecting a language when you write a note is a nice way (like many Mastodon clients which also could autodetect the lang from the written content)

Yes, i think i will prefer this way since not every posts always stay in one language. It just needs good UI so it won't bother common users. They can manually or use auto detected language as default language value before posting. NIP-32 allows regular notes to embed 'l tag' to mark the language