public List<DateGroup> parseSyntax(String language)
   {
      language = words2numbers(language);

      List<DateGroup> result = new ArrayList<DateGroup>();
      List<com.joestelmach.natty.DateGroup> groups = parser.parse(language);
      Date now = new Date();
      for (com.joestelmach.natty.DateGroup group : groups) {
         result.add(new DateGroupImpl(now, group));
      }
      return result;
   }
@Test
   public void testParseSyntax()
   {
      List<DateGroup> parse = new PrettyTimeParser().parseSyntax("I did it three days ago");
      Assert.assertFalse(parse.isEmpty());
      String formatted = new PrettyTime(Locale.ENGLISH).format(parse.get(0).getDates().get(0));
      Assert.assertEquals("3 days ago", formatted);
      Assert.assertEquals(1, parse.get(0).getLine());
      Assert.assertEquals(10, parse.get(0).getPosition());
      Assert.assertEquals(1, parse.get(0).getDates().size());
      Assert.assertNull(parse.get(0).getRecursUntil());
      Assert.assertFalse(parse.get(0).isRecurring());
      Assert.assertEquals(-1, parse.get(0).getRecurInterval());
   }