taraskevizer 9.2.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/lib/after-tarask.d.ts +2 -2
- package/dist/lib/after-tarask.js +15 -11
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -7,7 +7,7 @@ const printWithPrefix = (msg) => {
|
|
|
7
7
|
process.argv.splice(0, 2);
|
|
8
8
|
const checkForOptions = (options) => process.argv[0] && options.includes(process.argv[0].toLowerCase());
|
|
9
9
|
if (checkForOptions(['-v', '--version'])) {
|
|
10
|
-
printWithPrefix("9.2.
|
|
10
|
+
printWithPrefix("9.2.1");
|
|
11
11
|
process.exit(0);
|
|
12
12
|
}
|
|
13
13
|
if (checkForOptions(['-h', '--help'])) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const endZSoftenAndNiaBiaz:
|
|
1
|
+
import type { Dict } from '../dict/types';
|
|
2
|
+
export declare const endZSoftenAndNiaBiaz: Dict;
|
package/dist/lib/after-tarask.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
const prepositionPattern = /^(?:а[бд]?|б[ея]зь?|[дз]а|д?ля|дзеля|[нп]ад?|пр[аы]|празь?|у|церазь?)$/;
|
|
2
|
-
const isSingleVowel = (str) => str.match(/[аеёіоуыэюя]/g)?.length === 1;
|
|
3
|
-
const isFirstSyllabeStressed = (word) => /^[бвгджзйклмнпхрстфхцчшўьʼ]*.\u0301/.test(word);
|
|
4
1
|
export const endZSoftenAndNiaBiaz = [
|
|
2
|
+
// / не (?=
|
|
3
|
+
// {зычны}*{сымбаль}{націск}
|
|
4
|
+
// |{зычны}*{галосны}{зычны}*{канец слова}
|
|
5
|
+
// )
|
|
6
|
+
// (?!{прыназоўнік})/
|
|
5
7
|
[
|
|
6
|
-
/
|
|
7
|
-
|
|
8
|
+
/ не (?=[бвгджзйклмнпхрстфхцчшўьʼ]*.\u0301|[бвгджзйклмнпхрстфхцчшўьʼ]*[аеёіоуыэюя][бвгджзйклмнпхрстфхцчшўьʼ]* )(?!а[бд]?|б[ея]зь?|[дз]а|д?ля|дзеля|[нп]ад?|пр[аы]|празь?|у|церазь?)/g,
|
|
9
|
+
' ня ',
|
|
8
10
|
],
|
|
11
|
+
// / без(?=ь? (?:
|
|
12
|
+
// {зычны}*{сымбаль}{націск}
|
|
13
|
+
// |{зычны}*{галосны}{зычны}*{канец слова}
|
|
14
|
+
// )/
|
|
9
15
|
[
|
|
10
|
-
/
|
|
11
|
-
|
|
12
|
-
(isSingleVowel($1) && !prepositionPattern.test($1))
|
|
13
|
-
? ' ня ' + $1
|
|
14
|
-
: $0,
|
|
16
|
+
/ без(?=ь? (?:[бвгджзйклмнпхрстфхцчшўьʼ]*.\u0301|[бвгджзйклмнпхрстфхцчшўьʼ]*[аеёіоуыэюя][бвгджзйклмнпхрстфхцчшўьʼ]* ))/g,
|
|
17
|
+
' бяз',
|
|
15
18
|
],
|
|
19
|
+
|
|
16
20
|
[/ б[ея]з(?= і\S*[ая]ў|ну )/g, ' бязь'],
|
|
17
|
-
[/
|
|
21
|
+
[/ (?:пра|цера)?з(?= і\S*[ая]ў|ну )/g, '$&ь'],
|
|
18
22
|
];
|