Notice that code complexity is defined in a way that makes it into a straightforward generalization of the cost of a word as expressed in terms of paradigm applications in GF source code.
the source code complexity of a paradigm application is size(P m [w]) = 1 + m the complexity for a word w is its cost plus one; the addition of one comes from the application node for the function P m and corresponds to knowing the part of speech of the word.