Will that suit your needs?
pos = c("abound" , "abounds", "abundant")
neg = c("2-face","abnormal")
sent = "abundant abnormal activity was due to 2-face people"
p = 0
for (i in 1:length(pos)) {
if (grepl(pos[i],sent,ignore.case=T) == TRUE) p = p + 1
}
n = 0
for (i in 1:length(neg)) {
if (grepl(neg[i],sent,ignore.case=T) == TRUE) n = n + 1
}
print(p)
print(n)
print(paste("Overall sentence sentiment score = ", p - n))
Result: positive 1, negative 2, overall -1