mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-02-22 13:19:00 +00:00
Added "lang" for categories relevant tags interpretation
This commit is contained in:
parent
36abe6e11a
commit
2c65e06d98
5
101.md
5
101.md
@ -23,7 +23,8 @@ A new event kind is introduced to facilitate trust ratings:
|
|||||||
["p", "public key of the user being rated"],
|
["p", "public key of the user being rated"],
|
||||||
["rating", "numerical value between -100 and 100"],
|
["rating", "numerical value between -100 and 100"],
|
||||||
["e", "id of triggering event (optional)"],
|
["e", "id of triggering event (optional)"],
|
||||||
["category", "trust category (optional)"]
|
["category", "trust category (optional)"],
|
||||||
|
["lang", "language (optional)"]
|
||||||
],
|
],
|
||||||
"pubkey": "public key of the rater",
|
"pubkey": "public key of the rater",
|
||||||
"sig": "signature of the rater"
|
"sig": "signature of the rater"
|
||||||
@ -38,6 +39,7 @@ A new event kind is introduced to facilitate trust ratings:
|
|||||||
- `["rating", "<-100 to 100>"]`: The numerical trust rating.
|
- `["rating", "<-100 to 100>"]`: The numerical trust rating.
|
||||||
- `["e", "<event_id>"]` (optional): The ID of the event triggering the rating.
|
- `["e", "<event_id>"]` (optional): The ID of the event triggering the rating.
|
||||||
- `["category", "<category>"]` (optional): An optional trust category for context.
|
- `["category", "<category>"]` (optional): An optional trust category for context.
|
||||||
|
- `["lang", "<language>"]` (optional): An optional language for category.
|
||||||
- `pubkey`: The public key of the user issuing the trust rating.
|
- `pubkey`: The public key of the user issuing the trust rating.
|
||||||
- `sig`: The cryptographic signature of the event, ensuring authenticity.
|
- `sig`: The cryptographic signature of the event, ensuring authenticity.
|
||||||
|
|
||||||
@ -211,6 +213,7 @@ Clients can implement the above formula, but also adjust the way trust is calcul
|
|||||||
To filter content within a specific category, or filter specific types of content :
|
To filter content within a specific category, or filter specific types of content :
|
||||||
|
|
||||||
* **Categories:** Filter by `category="news"`, `category="music"`, or `category="video"` to prioritize content.
|
* **Categories:** Filter by `category="news"`, `category="music"`, or `category="video"` to prioritize content.
|
||||||
|
* **Language:** Filter by `lang="fr"` to show language relevant categories.
|
||||||
* **Context-Aware Filtering:** Combine scores with keywords, tags, or user settings to match the current context.
|
* **Context-Aware Filtering:** Combine scores with keywords, tags, or user settings to match the current context.
|
||||||
* **Algorithme :** The formula `trust(B)=math.sqrt(trust(A,B)×trust(User,A))` can be changed to only take into account direct friends, or if they are tagged using a specific keyword.
|
* **Algorithme :** The formula `trust(B)=math.sqrt(trust(A,B)×trust(User,A))` can be changed to only take into account direct friends, or if they are tagged using a specific keyword.
|
||||||
* **UX:** Show the user the category of content being filtered, and give them easy controls on how to tweak it.
|
* **UX:** Show the user the category of content being filtered, and give them easy controls on how to tweak it.
|
||||||
|
Loading…
Reference in New Issue
Block a user