You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm helping out Mission Local of San Francisco with their tech. First of all, really appreciate the work you put into this plugin, it helps us reach tens of thousands more readers every month.
We publish articles in English, Chinese and Spanish. We coach our reporters to hide Chinese and Spanish articles from Apple news. However, we have new reporters and interns joining frequently so very occasionally a non-English article would slip through to Apple News and some Apple News editor would have to manually pull the article down.
Is it possible to implement an automated language detector in your plugin so that it automatically hides non-English articles from Apple News? Or is it possible to at least give a warning to remind the reporters to check the "Hidden Article" option manually?
Option 1: When a user publishes a non-English article (like Chinese or Spanish), the "Hidden Article" option is auto-selected.
Option 2: When a user publishes a non-English article (like Chinese or Spanish), there is a warning to remind the user to check "Hidden Article" option.
The text was updated successfully, but these errors were encountered:
The plugin supports multiple languages, so we don't want to automatically filter out certain languages from being published at the plugin level. However, if you want to set the value of the isHidden flag based on the language of a post, you can do that using the Automation feature, as long as the language of the post is being captured in a taxonomy somewhere (category, tag, or a custom taxonomy). You can set up an Automation rule to set the value of isHidden to true if the language term is set to Chinese or Spanish.
You can also accomplish this using one of our filters, like apple_news_skip_push to completely skip sending the post to Apple News based on the result of custom logic you write.
Description
Hi, I'm helping out Mission Local of San Francisco with their tech. First of all, really appreciate the work you put into this plugin, it helps us reach tens of thousands more readers every month.
We publish articles in English, Chinese and Spanish. We coach our reporters to hide Chinese and Spanish articles from Apple news. However, we have new reporters and interns joining frequently so very occasionally a non-English article would slip through to Apple News and some Apple News editor would have to manually pull the article down.
Is it possible to implement an automated language detector in your plugin so that it automatically hides non-English articles from Apple News? Or is it possible to at least give a warning to remind the reporters to check the "Hidden Article" option manually?
There are many open source python libraries that do this:
https://stackoverflow.com/questions/39142778/how-to-determine-the-language-of-a-piece-of-text
I'm not familiar with PHP but it seems like there are existing solutions as well:
https://stackoverflow.com/questions/1441562/detect-language-from-string-in-php
Use Case
Option 1: When a user publishes a non-English article (like Chinese or Spanish), the "Hidden Article" option is auto-selected.
Option 2: When a user publishes a non-English article (like Chinese or Spanish), there is a warning to remind the user to check "Hidden Article" option.
The text was updated successfully, but these errors were encountered: