protected void copyProminenceAnnotations(List<Word> words, List<Region> prominence) {
    int j = 0;
    for (Word word : words) {
      while (j < prominence.size() && prominence.get(j).getEnd() < word.getStart()) {
        ++j;
      }

      String pattern = "P";
      if (include_secondary) {
        pattern = "(P|p)";
      }
      word.setAccent(null);
      while (j < prominence.size() && prominence.get(j).getEnd() <= word.getEnd()) {
        if (prominence.get(j).getLabel() != null && prominence.get(j).getLabel().matches(pattern)) {
          word.setAccent("X*?");
        }
        j++;
      }
    }
  }