It is not possible to do as you describe.
The closest I can think of is to make a function for generating functions, using eval to parse a passed string. Using eval however, is generally evil and should be avoided. Overall, I would not recommend doing something like this at all.
Also, it is worth noting that there is very little point in doing what you want, as javascript sent over the wire should be compressed first, so the the word function will be represented by one token, regardless of how long the word is.
If you want your source code to be more readable and concise, I would recommend coffee-script which compiles to javascript, and allows you to define functions without using even the first letter of function. Chuck Norris would approve!
Summary of conclusions and recommendations
- use coffee-script for cruft free source
- compile it to verbose javascript you never look at
- minify that javascript (uglify is a great compressor, or google's closure)
- gzip it (will compress repetitive strings well)
- send it
The key issue here is that after it is gzipped, the size of the word function
becomes irrelevant, so the only remaining issue is the readability of your source code.