mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
13 lines
497 B
Ruby
13 lines
497 B
Ruby
class AttributeCategorySuggestion < ApplicationRecord
|
|
# Number of times an attribute category must be used before it gets considered
|
|
# as a suggested category.
|
|
USAGE_FREQUENCY_MINIMUM = 1
|
|
|
|
# Number of suggestions to return over the API. Limiting this means the
|
|
# most-used categories get suggested, while niche or less-used categories don't.
|
|
SUGGESTIONS_RESULT_COUNT = 100
|
|
|
|
# Labels to never suggest
|
|
BLACKLISTED_LABELS = AttributeCategory::SPECIAL_CATEGORY_LABELS + [nil, ""]
|
|
end
|