Creates a summary from text based on shlomibabluki's python implementation