Discuss Scratch

TheHockeyist
Scratcher
1000+ posts

Show Possible Duplicate Posts

OmnipotentPotato wrote:

Blueinkproductions wrote:

Support.

theonlygusti wrote:

Support.
?Whut
IKR
*Sigh*… When you bump a topic, it's best to put “bump” or some sort of equivalent.


theonlygusti
Scratcher
1000+ posts

Show Possible Duplicate Posts

Xelophelt wrote:

This would be an interesting feature. But can we actually pull it off?
I'll support I guess…
Yes, it would be super easy to pull off.

It would work similarly to google; it would take the user input so far, everytime a new key is pressed, and match it against all current topics.

It would be really easy and fast.

Blueinkproductions
Scratcher
1000+ posts

Show Possible Duplicate Posts

theonlygusti wrote:

Xelophelt wrote:

This would be an interesting feature. But can we actually pull it off?
I'll support I guess…
Yes, it would be super easy to pull off.

It would work similarly to google; it would take the user input so far, everytime a new key is pressed, and match it against all current topics.

It would be really easy and fast.
Except that Google is the current search engine for Scratch, and it doesn't work very well.

Generation 2: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
____                  _____  _______              
| \ | | | | | |\ | | /
|___/ | | | |__ | | \ | |/
| \ | | | | | | \ | |\
| | | | | | | | \ | | \
|___/ L____ \___/ |_____ ___|___ | \| | \
PRODUCTIONS





















































Here's a hint: support = support.

<shameless self promotion>follow me! follow me! follow me! love my stuff! love my stuff! love my stuff! follow me! love my stuff! remix my stuff! follow me! follow me! </shameless self promotion>
djdolphin
Scratcher
1000+ posts

Show Possible Duplicate Posts

Support!

!
TimothyLawyer
Scratcher
1000+ posts

Show Possible Duplicate Posts

theonlygusti wrote:

Yes, it would be super easy to pull off.

It would work similarly to google; it would take the user input so far, everytime a new key is pressed, and match it against all current topics.

It would be really easy and fast.
Could you link to how you would write the code for it?

BeetleBlocks, WatercolorBot, and Turtle Art
Hover over a name or label to translate into current language
When Earth was… Purple?

☂️




theonlygusti
Scratcher
1000+ posts

Show Possible Duplicate Posts

^^ I'm on holiday, so I can't actually write the code right now, but here's how I would go about it:

  1. use JavaScript keypress event listener to see when user enters text in title area.
  2. use an ajax get method (jQuery or JavaScript) to compare each of the first hundred or so pages' titles with the users input, if it matches notify the user.

My code for matching the text would split the text by spaces, and match each permutation of the generated list against the possible duplicate title.

If a permutation matches, then it could be a duplicate.

Use a thesaurus, online or not, the match not only permutations, but also permutations of common synonyms.

All case insensitive, and allowing for character of error.

Then, remove some words from the text, and match against the new text. Only remove unimportant words, such as and or if or suggestion.

I know it won't be perfect, but it doesn't have to be. The current system does work pretty well, this would just try and prevent obvious duplicates.


Powered by DjangoBB