anchor.diff:  %%----------------------------------------------------------------------------
   %% Internal functions
   %%----------------------------------------------------------------------------
  +
  +%% TODO: move this code to separate modules (like stemming)
  +expand(Str, Lang) ->
  +    case Lang of
  +        "nl" -> Str;
  +        "en" ->
  +            re:replace(Str, <<"(.)n't">>, <<"\\1 not">>,
  +                       [unicode,global,{return,binary}])
  +    end.
   
   tokenize(Str, Lang) ->
       RE = case Lang of
  
positive.code: 
  %% @doc Returns a list of terms with duplicates removed.
  -spec uterms(utf8_string(), iso_639_1()) -> [utf8_string()].
  uterms(Str, Lang) ->
      plists:usort(
        plists:map(
          fun (T) -> (list_to_atom("doko_stemming_" ++ Lang)):stem(T) end,
  
negative.code: 
  %% API
  -export([uterms/2]).
  -export([expand/2]).
  
  %%----------------------------------------------------------------------------
  %% API
  