The question does not help much but I would try to do this in importing the data into the new table:
INSERT INTO novatabela (word, definicao, classe_gramatical)
SELECT word, definicao, classe_gramatical FROM tabelaantiga
Leave without the word_id
, so the numbering will be done from scratch. Make sure the table has just been created. If it is necessary to do this in a temporary table, delete the old one and rename the temporary one to replace the old one.
Stay tuned to the comments in the question because changing a primary key can have disastrous consequences for the database.
Depending on whether you have holes in ids
is not usually a good idea. You will have to guarantee this, which is not easy. Again you have comments giving you a better solution.
Ideally you should not use AUTOINCREMENT
for anything in SQLite .