Doesn't belong here: constructing an API result is a sifferent concern from computing the suggestions. Please put this into some kind of ResultBuilder.