Intelligent writer for text and sentences autocompletion based on multiple inputs and training datasets