wdiff: wdiff behaviour in R

View source: R/wdiff.R

wdiffR Documentation

wdiff behaviour in R

Description

replicate the simple wdiff output without writing tempfiles our calling the command line

Usage

wdiff(original, correction, sep = " ")

Arguments

original

character vector of original sentences

correction

character vector of corrected sentences

sep

separator for tokenization (use " " to replicate wdiff, or "" for character by character diff)

Value

a character vector summarising diffs between the two character vectors

Examples

wdiff("I haben't idea about that", "I have no idea about that.", "")

antdurrant/gec.annotation documentation built on July 19, 2023, 5:13 a.m.