Page MenuHomePhabricator

Enable TextMatch to import queries/groups of checks apart from individuals checks
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Currently we can use imports in TextMatch like so:

"matchItems": {
	"LLM-indicators": {
		"import": "MediaWiki:Editcheck-config-LLM.json"
	}
}

where on this page a full-fledged check is located.

I ask to support importing only queries:

"matchItems": {
	"LLM-indicators": {
		"query": "MediaWiki:Editcheck-config-LLM.json",
		"title": "ИИ-текст",
		"message": "Этот текст может содержать [[Википедия:Признаки сгенерированности текста|контент, созданный большой языковой моделью]]. Удалите или тщательно перепроверьте и перепишите любой ИИ-контент.",
		"expand": "paragraph",
		"config": {
			"minimumEditcount": 500,
			"minOccurrences": 3
		},
	}
}

And importing groups of checks:

"matchItems": {
	"checks-group": {
		"import": "MediaWiki:Editcheck-config-group-of-some-checks.json"
	}
}

It would be also very nice if such a group could specify default settings for its checks.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
The first feature is useful when we have a large set of patterns (indicators of LLM-generated text in that case), which make sense to be on a separate page, but it's useful to tweak other settings on the main MediaWiki:Editcheck-config.json page.

The second feature is useful for importing checks sharing a common theme -- for example, made for/created by a specific WikiProject.