WP Manifestindependent plugin directory
manifest / ai / ai-experiments

AI Experiments archived

WordPress on-device AI experiments

by Pascal Birchler · github.com/swissspidy/ai-experiments · website

31stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/swissspidy/ai-experiments/archive/refs/heads/main.zip

Readme

WordPress AI Experiments

Client-side AI experiments using Chrome's built-in AI and other solutions.

Note: Requires Chrome Canary.

Try it now in your browser:

Or install and activate the latest nightly build on your own WordPress website:

Features

“Help me write”

Generate new content given your ideas, in the same tone as your other existing content.

Options for rewriting individual paragraphs à la Google Doc, like rephrasing, shortening or elaborating.

"Help me write" integration

https://github.com/user-attachments/assets/5cb2220f-77df-4ce2-a209-65fec02f5f57

There is also some basic autocomplete functionality to finish sentences:

Screenshot 2024-10-29 at 15 10 27 Screenshot 2024-10-29 at 15 10 20

https://github.com/user-attachments/assets/e4b6f3d6-0b14-44d9-9491-53e0f72d0ada

Generate headlines & permalinks

Headline generation:

Screenshot 2024-10-29 at 17 17 02

https://github.com/user-attachments/assets/f34a030b-1dad-496d-a570-181bd3b954c4

Permalink generation:

Screenshot 2024-10-29 at 17 25 38

https://github.com/user-attachments/assets/2c652c82-9bd9-42fb-9bf4-10a6b919e05d

Writing meta descriptions based on the content

Using a simple prompt to summarize the content in only a few sentences.

https://github.com/user-attachments/assets/4aea598f-f38d-4cee-9ce0-ce09563ee537

Generate image captions / alternative text

Uses Transformers.js and Florence-2 to generate image captions and alternative text for images directly in the editor. Also integrated into Media Experiments, which supports video captioning too.

https://github.com/user-attachments/assets/bf516dc6-c135-4598-b77a-2f2e9f38699b

Generate a memorable quote

A slight variation on the summarization use case, this extracts a memorable quote from the article and gives it some visual emphasis.

https://github.com/user-attachments/assets/4d439491-5d52-4183-9165-375471672414

Assigning tags & categories to blog posts

Suggest matching tags/categories based on the content. Grabs a list of existing terms from the site and passes it to the prompt together with the post content.

https://github.com/user-attachments/assets/c1e29673-6b4d-426d-b4e5-39b846a0c6d7

Provide tl;dr to visitors

Uses Chrome’s built-in summarization API to provide readers a short summary of the post content. The UI is powered by WordPress’ new Interactivity API.

Content summarization example

https://github.com/user-attachments/assets/e25e6a70-31bf-4fa5-9143-22a7124097dc

Also supports summarizing comments:

Comment summarization example

Sentiment analysis for content / comments

Using a simple prompt to say whether the text is positive or negative. Could be used to suggest rephrasing the text à la Grammarly, or identify negative comments.

https://github.com/user-attachments/assets/d1060297-fb80-4cf3-ba82-b40304846662

Content translation

In the editor, instantly translate your content into another language. Useful for multilingual websites.

Screenshot 2024-10-29 at 12 18 44 Screenshot 2024-10-29 at 12 18 51

On the frontend, translate comments written in another language or translate the post content to your preferred language.

Screenshot 2024-10-29 at 12 19 09

Read the full README on GitHub →