algorithm now correctly parses prepostions in longer sentences