The processor module for tataku.vim.
This split the sentence by Intl.Segmenter
.
- tataku-processor-intl_segmenter-dependencies
- tataku-processor-intl_segmenter-options
- tataku-processor-intl_segmenter-samples
This plugin needs:
This module has some options.
-
locale
Target locale string. (required) See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#locales
-
granularity
How granularly should the input be split. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#granularity default:
sentence
let g:tataku_recipes = #{
\ sample: #{
\ collector: #{
\ name: 'intl_segmenter',
\ options: #{
\ locales: 'en',
\ granularity: 'sentence',
\ },
\ }
\ }
\ }