random-word-api icon indicating copy to clipboard operation
random-word-api copied to clipboard

The German language file contains some phrases instead of words only

Open andy5995 opened this issue 3 years ago • 2 comments

I thought about doing a PR but I think the diff might be virtually impossible to review. Is there a way to use regex to remove the phrases? I searched de.json and found 7008 spaces.

Maybe instead of editing the json, the API could filter out phrases?

Shows one use-case

https://github.com/theimpossibleastronaut/aawordsearch/pull/8#issuecomment-1330062022

Thanks for implementing additional languages, btw. :)

andy5995 avatar Nov 29 '22 04:11 andy5995

I will look into it, could you filter spaces on the frontend until then?

RazorSh4rk avatar Dec 02 '22 21:12 RazorSh4rk

Yeah, I did this for now https://github.com/theimpossibleastronaut/aawordsearch/blob/6c57da7eadbeaeac3823ce15ee7e01f4830b6d3d/aawordsearch.c#L642

andy5995 avatar Dec 03 '22 00:12 andy5995