I would also called this filter "elide" which is the verb most related to "ellipses". You can also make it take an argument instead of hard coding 20. That would be neat.