fork(1) download
  1. mystring1 <- "Other work has shown that, in addition to language-general features such as a
  2. decreased speaking rate and an expanded pitch range, clear speech production
  3. involves the enhancement of the acoustic-phonetic distance between
  4. phonologically contrastive categories 􏰃e.g., Ferguson and Kewley-Port, 2002;
  5. Krause and Braida, 2004, Picheny et al, 1986; Smiljanic and Bradlow, 2005, 2007􏰀."
  6.  
  7. mystring2 <- "Other work has shown that, in addition to language-general features such as a
  8. decreased speaking rate and an expanded pitch range, clear speech production
  9. involves the enhancement of the acoustic-phonetic distance between
  10. phonologically contrastive categories 􏰃e.g., Ferguson and Kewley-Port, 2002;
  11. Krause and Braida, 2004, Picheny et al, 1986; Smiljanic and Bradlow, 2005,
  12. 2007􏰀. Therefore, reduced sensitivity to any or all of the language-specific
  13. acoustic-phonetic dimensions of contrast and clear speech enhancement would
  14. yield a diminished clear speech benefit for non-native listeners. This may
  15. appear somewhat surprising given that clear speech production was elicited in
  16. our studies by instructing the talkers to speak clearly for the sake of
  17. listeners with either a hearing impairment or from a different native language
  18. background. However, as discussed further in Bradlow and Bent 􏰃2002􏰀, the limits
  19. of clear speech as a means of enhancing non-native speech perception likely
  20. reflect the “mistuning” that characterizes spoken language communication between
  21. native and non-native speakers."
  22.  
  23.  
  24. gsub(x = mystring1, pattern = "(?s)\\be\\.g\\.,.*?[0-9]{4}[^\\w.]*(?=\\.)", replacement = "", perl = TRUE)
  25. gsub(x = mystring2, pattern = "(?s)\\be\\.g\\.,.*?[0-9]{4}[^\\w.]*(?=\\.)", replacement = "", perl = TRUE)
Success #stdin #stdout 0.24s 183680KB
stdin
Standard input is empty
stdout
[1] "Other work has shown that, in addition to language-general features such as a\n              decreased speaking rate and an expanded pitch range, clear speech production\n              involves the enhancement of the acoustic-phonetic distance between\n              phonologically contrastive categories 􏰃."
[1] "Other work has shown that, in addition to language-general features such as a\n              decreased speaking rate and an expanded pitch range, clear speech production\n              involves the enhancement of the acoustic-phonetic distance between\n              phonologically contrastive categories 􏰃. Therefore, reduced sensitivity to any or all of the language-specific\n              acoustic-phonetic dimensions of contrast and clear speech enhancement would\n              yield a diminished clear speech benefit for non-native listeners. This may\n              appear somewhat surprising given that clear speech production was elicited in \n              our studies by instructing the talkers to speak clearly for the sake of\n              listeners with either a hearing impairment or from a different native language\n              background. However, as discussed further in Bradlow and Bent 􏰃2002􏰀, the limits\n              of clear speech as a means of enhancing non-native speech perception likely\n              reflect the “mistuning” that characterizes spoken language communication between\n              native and non-native speakers."