Podcast-Republic / PRApp

30 stars 10 forks source link

Feature request (?): Extend to sort tokens to other language? #482

Open fredsleeve opened 3 months ago

fredsleeve commented 3 months ago

Currently the option "Ignore articles in title" only works for English articles. Would it be possible to extend this for further language too? E.g. for German it would be: der/die/das/ein/eine

To implement this it would also be a good idea to implemented this in an XML file here in Github, so the community could maintain this on their own.

gemiren commented 3 months ago

It's a good idea to load the tokens from an external file instead of hard coded strings in the app. Will add that. Thanks.

fredsleeve commented 3 months ago

One technical aspect you should consider: Will these sort tokens work only for the set app language or over all languages? For last implementation there might be some (rare) side effects: E.g. a podcast with the title "Die Another Day" will be sorted differently because "Die" (The) is an German article. Or maybe you should consider the pdocast language (if available) to determine the sort tokens.

gemiren commented 3 months ago

Ideally the app should detect the language used for the title and then apply the applicable tokens. That can be very challenging if the title is very short or written in an informal way. Using the language of the podcast is a good workaround.