Inputs
Outputs
Neuron type
Best algorithm has been found - locked
Patterns
Pattern |
Input |
Output |
1. |
|
Declarative sentence: |
Hello world. |
|
2. |
sentence: |
you are not alone |
|
Declarative sentence: |
You are not alone. |
|
3. |
sentence: |
we are your friends |
|
Declarative sentence: |
We are your friends. |
|
Applicable neurons
-
character .
-
Connect - two inputs
-
Capitalize the first letter
-
character >
-
begin of start tag
-
√¯(x² + y²)
-
(a, +∞)
-
a(?=b|c)
-
character m
-
select avg (A, B, C)
-
value is null
Algorithm
Test
Code made by AI:
/**
* character .:
*
* @return {Array}
*/
function neuron510()
{
return['.'];
}
/**
* 1:
*
* @return {Array}
*/
function neuron501()
{
return [1];
}
/**
* Length of string:
*
* @param x1 String
* @return {Array}
*/
function neuron528(x1)
{
return[x1.toString().length];
}
/**
* Substring (startPosition, endPosition): Get substring from string - from position - to pos
*
* @param x1 MyString
* @param x2 start position
* @param x3 end position
* @return {Array}
*/
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}
/**
* Substring (from position to end):
*
* @param x1 MyString
* @param x2 start position
* @return {Array}
*/
function neuron529(x1, x2)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
arr = neuron528(outputs[0]);
outputs[2] = arr[0];
arr = neuron525(outputs[0], outputs[1], outputs[2]);
outputs[3] = arr[0];
return[outputs[3]];
}
/**
* 0:
*
* @return {Array}
*/
function neuron500()
{
return [0];
}
/**
* Substring (startPosition, endPosition): Get substring from string - from position - to pos
*
* @param x1 MyString
* @param x2 start position
* @param x3 end position
* @return {Array}
*/
function neuron525(x1, x2, x3)
{
return[x1.toString().substring(x2, x3)];
}
/**
* Substring (from start to position):
*
* @param x1 String
* @param x2 End position
* @return {Array}
*/
function neuron526(x1, x2)
{
var outputs = [];
outputs[0] = x1;
outputs[1] = x2;
arr = neuron500();
outputs[2] = arr[0];
arr = neuron525(outputs[0], outputs[1], outputs[2]);
outputs[3] = arr[0];
return[outputs[3]];
}
/**
* Get first letter:
*
* @param x1 String
* @return {Array}
*/
function neuron671(x1)
{
var outputs = [];
outputs[0] = x1;
arr = neuron501();
outputs[1] = arr[0];
arr = neuron529(outputs[0], outputs[1]);
outputs[2] = arr[0];
arr = neuron526(outputs[0], outputs[1]);
outputs[3] = arr[0];
return[outputs[3], outputs[2]];
}
/**
* toUpperCase:
*
* @param x1 string
* @return {Array}
*/
function neuron670(x1)
{
return [x1.toString().toUpperCase()];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Capitalize the first letter:
*
* @param x1 string
* @return {Array}
*/
function neuron672(x1)
{
var outputs = [];
outputs[0] = x1;
arr = neuron671(outputs[0]);
outputs[1] = arr[0];
; outputs[2] = arr[1];
arr = neuron670(outputs[1]);
outputs[3] = arr[0];
arr = neuron520(outputs[3], outputs[2]);
outputs[4] = arr[0];
return[outputs[4]];
}
/**
* Connect - two inputs:
*
* @param x1 Variable A
* @param x2 Variable B
* @return {Array}
*/
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}
/**
* Declarative sentence:
*
* @param x1 sentence
* @return {Array}
*/
function neuron674(x1)
{
var outputs = [];
outputs[0] = x1;
arr = neuron510();
outputs[1] = arr[0];
arr = neuron672(outputs[0]);
outputs[2] = arr[0];
arr = neuron520(outputs[2], outputs[1]);
outputs[3] = arr[0];
return[outputs[3]];
}
Code made by AI: