From 2c65e06d98987211465de45878ad4a4601771057 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 1 Feb 2025 11:47:54 +0100 Subject: [PATCH] Added "lang" for categories relevant tags interpretation --- 101.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/101.md b/101.md index b34c89f5..0cad8147 100644 --- a/101.md +++ b/101.md @@ -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", ""]` (optional): The ID of the event triggering the rating. - `["category", ""]` (optional): An optional trust category for context. + - `["lang", ""]` (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.