this post was submitted on 01 Sep 2024
3 points (100.0% liked)

Perchance - Create a Random Text Generator

445 readers
8 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
 

A while back I put together everything I could find about perchance. One such document included all properties on objects on perchance pages (that aren't the built-ins from JS). On discord someone said how they wish there was such a reference. So... now there is!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 months ago (2 children)

Yep, this is true. What I've realised though is that way too many people are using the private/internal properties at this point, so I'll always keep them there for backwards-compat - even in v2 of the engine where they won't be used internally. It's completely my fault for making them public in the first place. As I've mentioned before, the perchance engine was basically a draft that I ended up not rewriting because I was too lazy and/or over the time budget I allocated for the initial project launch - so I just have to deal with the consequences of this now, which is fine.

Still, it's definitely better to use the properties referenced on perchance.org/advanced-tutorial since that would create less confusion (RE multiple ways to do the same thing, different naming, etc). @[email protected] If you could swap those out (the ones that have an equivalent non-$ at least) that would be great - this is a very handy document! (might use it for my own reference too lmao)

[–] [email protected] 1 points 2 months ago (2 children)

Also, @[email protected] RE:

String Transform Properties These will not work on normal strings, only nodes.

This was a bug that specifically affected pluralForm and singularForm, which I've just fixed. Thanks! Let me know if there are any others that aren't working on strings. pastTense, upperCase, etc. all seem to work fine for me.

[–] [email protected] 2 points 2 months ago

Ah okay. Yeah I found that bug when first investigating this stuff and posted about it. But as it wasn't responded to I thought it must just be like that.

Thanks for the fix--I'll amend the docs. And I'll test some of these things again. It was just my old docs I had to hand; I haven't done much adjusting of them yet, but plan to. 👍

[–] [email protected] 1 points 2 months ago

I've updated the document now. Swapped property names around, removed that note, and adjusted the way duplicate properties are presented.

[–] [email protected] 1 points 2 months ago

Oooooooh, okay. Got it. Thought they were just legacy official props, or perhaps the non-$ ones were. Because we're explicitly allowed to use $output and $preprocess, I thought $ just signified "a special property from perchance you can use 👍"

I'll swap those around.