What is the relay/solution where I can filter for a specific language, or alphabet?

#asknostr

#devstr

Reply to this note

Please Login to reply.

Discussion

you can write a strfry plugin that does that

I would suggest to popularize people to post with language hashtags.

I use #turkce for when I post in Turkish.

#🇹🇷

Flags might be better. Some ppl might write #türkçe rather than #turkce and most of the clients aren’t sensitive to turkish characters. nostr:npub1gw3zhc5r5a7jfgl6yx8qv0nc9kset5ddkrka229c3tym5xltehlq58m7mm

Not sure if flags are hastagable at this moment

Hashtagable in Damus. Idk about other clients.

Elsat popped the #🇹🇷 flag cherry.

I don't think flags are a good idea.

Some languages are spoken in multiple countries. Such as English, German and Turkish as well.

Aynen öyle abi. Ama üşendiriyor beni çoğu zaman. Aslında türkçe içerikleri filtreleyip akış sağlayacak bir DVM yazsa bizden birisi baya iyi olacak.

Is there a content language tag in the NIPs yet? e.g. having the option for relays to index on an `l` tag that clients automagically inject into human-readable notes from environment data

Detecting content language by making API calls to some translation services seems expensive

Japanese relays have IP-based filter.

I want to know other ways. (I wonder how X/Twitter implements the lang filter in search.)

IP-based filter is based on Japan = Japanese.

This can be difficult for languages ​​that are spoken in multiple countries.

Maybe it uses the language in which the customer accessed Twitter as a proxy to tag posts? 🤔🤔

Bedankt!

Yes. You can test it using nfrelay.app as demo relay, elsat

wss://nfrelay.app/?lang=ja,th

/cc nostr:npub1s6z7hmmx2vud66f3utxd70qem8cwtggx0jgc7gh8pqwz2k8cltuqrdwk4c in the context of language filtered content, you can try out this relay (and use a client which only will show the content from this relay 🧐)

Yes, nostr client devs can also use directly classification events (NIP-32 kind: 1985) and filter kind: 1

Example:

nak req -k 1985 -t L=app.nfrelay.language wss://nfrelay.app

My proposal is to use ISO codes

the ISO code for all Turkic languages is [TRK]

Turkic languages ISO 639-5

https://iso639-3.sil.org/code/trk