Examples for 'stringi::stri_locate_all_boundaries'


Locate Text Boundaries

Aliases: stri_locate_all_boundaries stri_locate_last_boundaries stri_locate_first_boundaries stri_locate_all_words stri_locate_last_words stri_locate_first_words

Keywords:

### ** Examples

test <- 'The\u00a0above-mentioned    features are very useful. Spam, spam, eggs, bacon, and spam.'
stri_locate_all_words(test)
[[1]]
      start end
 [1,]     1   3
 [2,]     5   9
 [3,]    11  19
 [4,]    24  31
 [5,]    33  35
 [6,]    37  40
 [7,]    42  47
 [8,]    50  53
 [9,]    56  59
[10,]    62  65
[11,]    68  72
[12,]    75  77
[13,]    79  82
stri_locate_all_boundaries(
    'Mr. Jones and Mrs. Brown are very happy. So am I, Prof. Smith.',
    type='sentence',
    locale='en_US@ss=standard' # ICU >= 56 only
)
[[1]]
     start end
[1,]     1  41
[2,]    42  62

[Package stringi version 1.8.4 Index]