Formalize - Messaging made better!

Introduction

Do you want messaging on your game to be more… Formalized? This will help messaging become easier to understand, and make your game look more professional!


What does it do currently?


v1

  • Begins the message with a capital

  • At the start of each sentence, it will make it start with a capital.

  • Each time i is referenced, and it has a space infront of it and behind it, it will count it as referring to the person messaging, and so it will be capital.

  • If it does not end with an ‘!’ or a ‘?’ or a ‘.’ then it will end it with a full stop. Right now I do not know how to make it know if it is supposed to be a question or and exclamation, but if there is a way, I will try to implement it.

  • If the start of a sentence is like ‘sentence.sentence2’ where there is no space between it, it will separate it to look like ‘sentence. sentence2’ .


v2

  • It can now recognise “I’m” as a reference, and so if it is not capital, it will be and also it will make sure it has an apostrophe after it to make it signalled like I’m

  • It can now formalize everything if it is in quotes. This is still in beta release, and so there might be bugs, but very slim chance.


v3

  • Added filtering to the text, I forgot to add this in the first and second build
  • Added comments to allow users to understand the code better.

v4.1 (Final release)

This was originally supposed to be a two-parter release, but I have currently given up the project.
This basically just help it as an open-source project.

  • Added white spaces to allow people to separate it into chunks more easily.
  • Added more comments.

(These were suggestions by @iGottic.)


Why should I use Formalize?

If you want your game to be more serious or professional, you could use this. There are still bugs, currently, though, so it may not be the best choice. However, it is most certainly your choice if you ever decide to use this. Currently, it is on v3, and I plan to continue until either v10 or if I ever no longer need to work on this, so you may want to use it when it is at a higher version to make your game more professional.


How do I use it?

1. Enter the game.
2. Open up the ‘Chat’ section in your Explorer
3. Hold down shift, and then select the top child of the Chat section, to the bottom child. This should highlight all of the children in Chat.
4. Hold down Ctrl on your keyboard, and then press C on your keyboard.
5. Leave the game
6. Select / Highlight the Chat section, right click and click on ‘Paste Into
7. Put in the resource (linked below) into the game, then hold down click on it and then move it under the Chat section, then into the ChatModules folder inside of the Chat section.
8. There is no step eight! You’ve just done it!


Resource

Since some of you might want the Resource you can click on it, and you should find it. If you don’t trust text-hyperlinks, right click it, then click on “copy link address”, open up notepad, and look at the link, and it should show it is official. If not, try again, if that does not work, you got a fake.


Outroduction

(Yes, outroduction is a word.)
If you have any questions, have an issue, or want to send feedback, please PM me!


Current bugs

  • “I’ll” will not capitalize.
  • If you write “Im” with a capital “I” then it will not add an apostrophe.
  • It cannot support questions or exclamations at the end, and so it will assume it is a sentence*1.

*1 - It will think it is a sentence (ending in a full stop/period “.”) and not an exclamation (ending in an exclamation mark “!”) or a question (ending in a question mark “?”).

6 Likes

I think this is a neat resource for games that would make use of it, but the code could use some work.

There are lots of repeated statements/expressions.
Avoid over-referencing. There are plenty of cases in the code where variables would be best suited.

Examples:
image
image

Many conditional statements flood the code.
These can be shortened/replaced with a variety of methods, ranging from using the string library, to using a dictionary.

A conditional statement includes if, or, and, etc.

The part that needs most work:

Since this is open-source, make the code more understandable!
There are a number of things that will help with this.

Collocate code appropriately. This is a fancy term that means “put things in places that make more sense.” Variables go at the top, loops in the middle, finalization at the bottom.

Use whitespace to separate sections.* Sometimes, like paragraphs in writing, you need whitespace to help make everything more “chunked.” This helps an average programmer read it a lot easier.

Use a universal naming scheme. Name variables, functions, etc. in ways that are easier to understand. For example, full_formal should instead be named FinalFormalResult, or something similar.

Add comments! Comments make everything documented, which is always good. It’s you communicating directly to the reader.

Hopefully this feedback is helpful. Let me know if you have questions ^v^

3 Likes

This looks like a cool resource, especially for those “formal” airline, cafe and roleplay games.

Making it say Formal Speech - Roblox isn’t going to help anyone who doesn’t trust links, also the web.roblox link makes it look even more suspicious (and it makes you look <13), make sure to change web.roblox to just roblox.

Hello!
Thank you for the feedback, as I take this very seriously. I completely agree with you and so I have changed the hyperlink issue. This has been changed and I hope you like it now.

Many thanks,

jasperagent, @jasperagent_dev

1 Like

You could try checking if the player starts a sentence with words like “Why” “What” and “Where”.

Hello!
Thank you for the feedback, as I take this very seriously. Although this is a good method, there are multiple ways of starting a question. But, this will be taken into consideration and so now I will be taking this into consideration, and so, this will be added in v4, [OUTDATED] As well as quote fixing, and exclamations! [beta] (These are not in due to the resource no longer being updated.).
anyway, no more spoilers, thank you, once again, for your feedback.

Many thanks,

jasperagent, @jasperagent_dev

Hello!
Thank you for the feedback, as I take this very seriously. I am currently working on v4 as the moment I am writing this, and your feedback will be taken in and looked at. Although I have not replied for some time, I have seen this and have been working on it. As of now, in my v4 build I’m working on, your suggestions have been implemented.

Many thanks,

jasperagent, @jasperagent_dev

1 Like

Nothing against you or your module, but the practice of modifying everyone’s messages to change their grammar is very frowned upon. Every time I join, say, a Minecraft server, and it does this to my messages, I leave immediately.

I think the best step you can take towards making your game more professional is to find people who are professional in the first place. Perfect grammar is not required for professionalism, and in most cases it actually comes off as unprofessional and immature.

Perfect grammar is only really needed for long-form posts and books, it’s not intended for chat.

Hello!
I have reviewed your reply and although I do agree, in some cases that it can be frowned upon, I do not agree in how it makes you seem unprofessional.

It also, no, does not make it required for professionalism, and in your case where you say:

It is, frowned upon, but it is not very frowned upon. For example, I have played a game which has a similar system, it ends your sentence in a full stop and capitalizes your first letter, and capitalizes "I"s which is Project Realism, and it is incredibly popular and I have seen no one in the game complain. So, this is my response to why I disagree, however, if you wish to continue this you can PM me. Please do not take this as an offence to you, I am simply stating how I disagree, and this is my opinion.

Many thanks,

jasperagent, @jasperagent_dev