Select all rows with stored procedure
===

I have a postgresql table:

    +-----------------+
    |  words  |  repl |
    -------------------
    |  word1  | repl1 |
    -------------------
    |  word2  | repl2 |
    -------------------
    |  word3  | repl3 |    
    +-----------------+

How can i return setof all words and repl with stored procedure. 

I try:

    create function get_words() returns setof text as
    $$
    declare
        r varchar;
    begin
      for r in
          select word,repl from my_table
          loop
            return next r;
        end loop;
        return;
    end
    $$ language plpgsql;

When i execute it i got only word:

    select * from get_words();
     get_words 
    -----------
     word1
     word2
     word3



Thank you.