// This helps detect ma+_+sh in dialect, as well as avoiding segmenting possessive
// pronouns if the word starts with al-.
if (c.word().length() > 3) {
String start = c.word().substring(0, 2);
String end = c.word().substring(c.word().length() - 2);
if (c.index() == 2) {
features.add(start + "_" + end + "-begin-wrap");
}
if (c.index() == c.word().length() - 1) {
features.add(start + "_" + end + "-end-wrap");
}