Added compound word function for David.