taraskevizer 9.1.14 → 9.1.16
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/dict/iawords.js +1 -1
- package/dist/lib/after-tarask.js +1 -1
- 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.1.
|
|
10
|
+
printWithPrefix("9.1.16");
|
|
11
11
|
process.exit(0);
|
|
12
12
|
}
|
|
13
13
|
if (checkForOptions(['-h', '--help'])) {
|
package/dist/dict/iawords.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { iwords } from './iwords.js';
|
|
2
2
|
import { dictFrom, toOneLine } from './lib.js';
|
|
3
|
-
const ia = (word, words) => ` ${word}(?= \\(?(?:[
|
|
3
|
+
const ia = (word, words) => ` ${word}(?= \\(?(?:[бвгджзйклмнпрстфхцчшўьʼ]*[оё]|${toOneLine(words).replace(/\(/g, '(?:')}|i(?:${iwords})))`;
|
|
4
4
|
export const iaWords = dictFrom.raw([
|
|
5
5
|
|
|
6
6
|
[
|
package/dist/lib/after-tarask.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const prepositionPattern = /^(?:а[бд]?|б[ея]зь?|[дз]а|д?ля|дзеля|[нп]ад?|пр[аы]|празь?|у|церазь?)$/;
|
|
2
2
|
const isSingleVowel = (str) => str.match(/[аеёіоуыэюя]/g)?.length === 1;
|
|
3
|
-
const isFirstSyllabeStressed = (word) => /^[
|
|
3
|
+
const isFirstSyllabeStressed = (word) => /^[бвгджзйклмнпхрстфхцчшўьʼ]*.\u0301/.test(word);
|
|
4
4
|
export const endZSoftenAndNiaBiaz = [
|
|
5
5
|
[
|
|
6
6
|
/ бе(зь? \S+)/g,
|