I'd like to post this preliminary until approved by Jens.
Just in case rule #30 is coming into effect, as the minimum length of the dictionary words is nowhere mentioned...



Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_A2Z.kix

Computer
OS = Windows 2000 Professional
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 504 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = A-to-Z
Processing Start = 2007/09/14 14:39:12.109
Processing End = 2007/09/14 14:39:12.156
Duration = 0000/00/00 00:00:00.047
KiXGolf Score = 207

Thank you for participating in KiXtart Golf!


 Code:
function a($b,$c)
    dim $,$d,$e
    $a=0
    for each $ in $b
        dim $f
        for each $d in $b
            if $<$d
                for $e=-9 to -2
                    if right($,-$e)=left($d,-$e)
                        $=$+' '+$d
                        $f=$f-$e+1
                    else
                        if $=join($c,left(right($,~),~))&($|)-$f<$a|~$a
                            $a=''+(($|)-$f)+' '+$
endfunction


Ugh. I feel a bit filthy now
_________________________