Skip to content

Conversation

@staab
Copy link
Member

@staab staab commented Mar 19, 2024

l tags are really useful as a general-purpose indexable value. Adding L in many cases doesn't really help anything, and is quite ugly. Use cases:

  • Language: ["l", "en-US"]
  • Indexing 31337 creator: ["l", "Ainsley Costello"]

@vitorpamplona
Copy link
Collaborator

It's amusing how we've had to devise a complete labeling/namespace tag setup just to work around the fact that Nostr relays can't index the second value in tags, can't index tag presence, and can't do a simple startsWith query. All in the same NIP.

@alexgleason
Copy link
Member

Shouldn't we at least include the namespace in the third position of the tag? eg ["l", "en-US", "ISO-3166-2"]

@staab
Copy link
Member Author

staab commented Jun 7, 2024

Shouldn't we at least include the namespace in the third position of the tag? eg ["l", "en-US", "ISO-3166-2"]

I think it's probably best to just make the mark optional since in the 31337 case above the event's kind acts as a sort of namespace. This accommodates more informal usage which seems to be how people tend to use this (although I appreciate your use of the namespace field in gleasonator's feeds).

@alexgleason
Copy link
Member

Language should not be en-US, ideally it should be just en marked with ISO-639-1

I want to be able to distinguish between ["l", "en-US", "ISO-3166-2"] and ["l", "en", "ISO-639-1"]

@staab
Copy link
Member Author

staab commented Jun 7, 2024

That makes sense. Reviewing the music NIP, we've actually moved away from using l anyway. I've make the mark a SHOULD and specified that its absence indicates ugc.

@alexgleason alexgleason merged commit a7ed4e8 into nostr-protocol:master Jun 7, 2024
@staab staab deleted the relax-nip32 branch October 16, 2024 16:43
kufre19 added a commit to kufre19/nips that referenced this pull request Nov 17, 2025
Created New NIP for p2p advert(ads) event type

created New NIP with suggested number nostr-protocol#1129, to enable the nostr network indentify volunteer arbitrers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants