Skip to contents

Regular expression patterns and replacements for spelling normalization

Usage

regex_spelling_normalization

Format

A tibble.

See also

Other regular expression rules: yay::regex_text_normalization, yay::regex_file_normalization

String normalization functions: yay::str_normalize(), yay::str_normalize_file()

Examples

# unnest the pattern column
salim::regex_spelling_normalization |> tidyr::unnest_longer(col = pattern)
#> # A tibble: 2 × 5
#>   id              category           purpose                                                                     pattern               replacement
#>   <chr>           <chr>              <chr>                                                                       <chr>                 <chr>      
#> 1 title_fa        harmonize_spelling harmonize spelling of the [_FOKUS Aargau_](https://fokus.ag/) project title "Fokus(?=[ -]Aargau)" FOKUS      
#> 2 title_smartvote harmonize_spelling harmonize spelling of the [_smartvote_](https://smartvote.ch/) VAA          "(?i)\\bsmartvote\\b" smartvote