{#if suggestions.length > 0 || rhymes.length > 0}
{#if suggestions.length > 0}
Suggestions
{#each suggestions.slice(0, 10) as { word }}
applySuggestion(word)} role="option" aria-selected="false" > {word}
{/each}
{/if} {#if rhymes.length > 0}
Rhymes
{#each rhymes.slice(0, 10) as { word }}
applySuggestion(word)} role="option" aria-selected="false" > {word}
{/each}
{/if}
{/if}