The following articles describe how you can extend Weka: