Skip to content

okforest/similar-tag

warningOKForest conventions

A concept’s tags aren’t near-duplicates (case, punctuation, plural, or spelling) of tags more concepts use.

Tags group concepts across the tree (§4.1), so a tag written two ways (Churn and churn, income statement and income-statement, metric and metrics) splits its concepts in two, and a search for one misses the other. This warns about a tag that nearly matches one the tree uses more, or, as often, one written as OKF’s examples write tags, in lowercase with hyphens (Naming conventions). To keep a type’s tags to an agreed list, name them in its schema (A type’s tags).

This file breaks the rule:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
tags: [revenue, Churn]
---
Churn is the customers who cancel in a month, divided by the customers at its start.

okforest validate reports:

churn.md
5:17 warning Tag `Churn` (1 concept) looks like `churn` (1 concept): did you mean `churn`? okforest/similar-tag

Fixed:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
tags: [revenue, churn]
---
Churn is the customers who cancel in a month, divided by the customers at its start.