def METHOD_NAME(sentences, context_file_name, orig_file_name, first_context_id,
            stop_tokens, write_len_1_non_alnum):
    context_id = first_context_id
    with open(context_file_name, 'w') as wordsfile:
        with open(orig_file_name, 'w') as docsfile:
            for line in open(sentences, 'r'):
                cols = line.strip().split('\t')
                if len(cols) != 2:
                    print("Ignoring line without exactly one tab, "
                          "line number (starting from 0): "
                          + str(context_id - first_context_id), file=sys.stderr)
                    continue
                tokens = tokenize_sentence(cols[0])
                docsfile_tokens = [token_to_docsfile(t) for t in tokens]
                print('\t'.join([str(context_id), ' '.join(docsfile_tokens)]),
                      file=docsfile)
                write_context_to_wordsfile(str(context_id), tokens, wordsfile,
                                           stop_tokens, write_len_1_non_alnum)
                context_id += 1