Add ruby word count refinement