add function from zmapView.c and generalise to one that takes strings of words and makes context ids from them.