nips icon indicating copy to clipboard operation
nips copied to clipboard

nip12-add 'l' language generic tag suggestion

Open monlovesmango opened this issue 2 years ago • 7 comments

add suggestion of using l generic tag for language.

formatted updates: https://github.com/monlovesmango/nips/blob/nip12-add-'l'-language-tag-suggestion/12.md

monlovesmango avatar Jan 22 '23 21:01 monlovesmango

Maybe the standardization of a language tag would deserve its own nip? While clients searching for only a certain language would currently yield virtually nothing, it could help to skip showing or to suggest translation if the language was known.

Giszmo avatar Jan 23 '23 13:01 Giszmo

i dunno, doesn't seem complex enough for its own nip? and qualifies as generic tag query. hashtags didn't have a new nip.

i dont think we are doing any language standardization, just leveraging existing browser standards. this just to suggest what 'l' tag could be used for.

but happy to create net new nip if others agree it should be a new nip.

monlovesmango avatar Jan 23 '23 17:01 monlovesmango

does this need to be indexed?

jb55 avatar Jan 23 '23 18:01 jb55

yes, it would be a generic tag query. aren't all generic tag queries indexed?

I think it would be good for clients to be able to query by language.

monlovesmango avatar Jan 23 '23 19:01 monlovesmango

add suggestion of using l generic tag for language. I think it would be good for clients to be able to query by language.

+1 for the proposal by @monlovesmango

dtonon avatar Jan 27 '23 15:01 dtonon

does this need to be indexed?

"Give me all tweets in German" seems like a useful thing to query. And the cardinality and size of this tag's values will be a lot smaller than other less useful generic tags. A large improvement for a tiny cost.

gkbrk avatar Jan 27 '23 23:01 gkbrk

While the NIP originaly says "This NIP does not promote or standardize the use of any specific tag for any purpose." I would highly suggest that we do standardize the use of these tags (and reserving some for application specific use).

bu5hm4nn avatar Feb 15 '23 17:02 bu5hm4nn

closing this PR in favor of PR 670 - Update NIP32 with language example

monlovesmango avatar Jul 16 '23 17:07 monlovesmango