Prepare V2 corpus, editorial journal and reproducible publication boundary

This commit is contained in:
huncode committed 2026-10-26 17:46:00 +03:00
1 parent 7b3f49788d
commit 69607c52fd
498 files changed
+97671 -468

No files matched your search

@@ -0,0 +1,12 @@
function strToElementCode($str, $maxLength = 100) {
if ($maxLength < 1) {
throw new InvalidArgumentException('maxLength must be positive');
}
return CUtil::translit($str, 'ru', [
'max_len' => $maxLength,
'change_case' => 'L',
'replace_space' => '_',
'replace_other' => '_',
'delete_repeat_replace' => true,
]);
}