# [Jelly], <s>17</s> 12 bytes ẆµmJ)Ẏ“£uƇ»e [Try it online!][TIO-kwoerik7] [Jelly]: https://github.com/DennisMitchell/jelly [TIO-kwoerik7]: https://tio.run/##y0rNyan8///hrrZDW3O9NB/u6nvUMOfQ4tJj7Yd2p/5/uHvL4fZHTWuOTnq4cwaQjvz/Py8zOZUrLz@zKrk0lSsRBEAiVUDAlQdkJaempnJVcCUmJXNl5oFUgsWgVEUqV0FRajJQogQA "Jelly – Try It Online" -5 bytes by adapting [emanresu A's approach](https://codegolf.stackexchange.com/a/237937/66833) ## How it works ẆµmJ)Ẏ“£uƇ»e - Main link. Takes a word W on the left Ẇ - Contiguous substrings of W µ ) - Over each substring S: J - Yield the range [1, ..., len(S)] m - For each i in the range, take the ith elements of s Ẏ - Tighten into a list of strings “£uƇ» - Compressed string; "nice" e - Is this in the list of strings?