這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Context Term Tidier

外掛說明

Many WordPress installs suffer from cramming hundreds or thousands of varied taxonomy terms in to a limited number of ill-suited, all-purpose taxonomies (eg. the default “categories” and “tags”).

These are better off split in to dedicated taxonomies. For example, storing “Bill Gates” and “Microsoft” terms in “tags” is not optimal, because one is a person whilst the other is a company.

There is no straightforward way to split up existing taxonomies more granularly in this way, except for labour-intensive and manual, technical effort. So, many WordPress installs continue to suffer from not having created granular taxonomies intentionally at the outset.

Term Tidier tidies up messy taxonomies like these automatically. It uses natural language processing and knowledge graph technology to determine the real entity type of existing terms, then re-assigns them each to a more appropriate, alternative taxonomy.

How it works

Term Tidier uses Google Cloud’s Natural Language Processing features via API calls.

Users set a “source taxonomy”, the taxonomy they want to be tidied up.

For each term within that taxonomy, Term Tidier calls Google Cloud to examine the term name, aiming to return a determination as to its true “entity”.

The plugin receives one of eight “entity” type determinations from Google Cloud – UNKNOWN, PERSON, LOCATION, ORGANIZATION, EVENT, WORK_OF_ART, CONSUMER_GOOD or OTHER.

For each entity type, users specify a target taxonomy to which a matching term will be moved. For example, you can map all terms found to be a “LOCATION” to your own “Places” taxonomy, if it exists.

For each term in the source taxonomy, if a particular entity was determined, Term Tidier moves the term to your corresponding taxonomy.

Usage

Use Term Tidier from the WordPress Tools menu (Tools > Context Term Tidier).

The plugin page confirms your settings as set in Settings, displaying the taxonomy and terms which will be examined.

Click the “Tidy Terms” button to execute the operation.

Term Tidier will cycle through each term, seeking an “entity” determination and re-assigning any terms possible.

安裝方式

Term Tidier is a WordPress plugin. You can either:

  • Download the package, unzip it and upload the cxt-term-tidier folder to the wp-content/plugins/.
  • Upload the downloaded .zip package through the WordPress admin’s plugin uploader.
  • Install the plugin directly from the plugin Directory.

Once uploaded, Activate the plugin.

Settings

Term Tidier settings must be set in the WordPress admin, via the page at “Settings > Context Term Tidier”.

Google Cloud API key

Term Tidier is powered by Google Cloud Natural Language. You need an account. Follow the instructions in Settings to create an account, then copy and paste your API key in to Settings.

Google Cloud currently provides up to 5,000 monthly API calls for free. That means you can tidy 5,000 WordPress taxonomy terms per month for free. Higher usage than this may incur billing.

Source taxonomy

Select the taxonomy you want to examine and tidy up in the dropdown.

Re-assign terms

Select a target taxonomy to which terms to be of a particular entity type (UNKNOWN, PERSON, LOCATION, ORGANIZATION, EVENT, WORK_OF_ART, CONSUMER_GOOD or OTHER) will be moved

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Context Term Tidier〉的開發相關工作。

參與者

將〈Context Term Tidier〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄