Added "lang" for categories relevant tags interpretation

This commit is contained in:
fred 2025-02-01 11:47:54 +01:00
parent 36abe6e11a
commit 2c65e06d98

5
101.md
View File

@ -23,7 +23,8 @@ A new event kind is introduced to facilitate trust ratings:
["p", "public key of the user being rated"],
["rating", "numerical value between -100 and 100"],
["e", "id of triggering event (optional)"],
["category", "trust category (optional)"]
["category", "trust category (optional)"],
["lang", "language (optional)"]
],
"pubkey": "public key 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.
- `["e", "<event_id>"]` (optional): The ID of the event triggering the rating.
- `["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.
- `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 :
* **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.
* **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.