MCPcopy Create free account
hub / github.com/dailydotdev/apps / formatBoost

Function formatBoost

packages/shared/src/features/feedExplain/describe.ts:136–137  ·  view source on GitHub ↗
(weight: number)

Source from the content-addressed store, hash-verified

134
135/** A topic weight as the boost it gives a post, or No boost. */
136export const formatBoost = (weight: number): string =>
137 weight > 0 ? `×${(1 + weight).toFixed(2)}` : 'No boost';
138
139const strengthPhrase: Partial<Record<ExplainStrength, string>> = {
140 [ExplainStrength.Strong]: 'and read about it often',

Callers 3

formatTopicWeightFunction · 0.90
TopicLevelPickerFunction · 0.90
getReasonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected