battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

descriptiontranslator skills 1st example Emptytranslator skills 1st example

more_horiz

Code:

public class DiGhettoTranslator extends DISkill {
    private DISkillUtils diSkillUtils = new DISkillUtils();
    private UwU uwu = new UwU();
    private Algorithm algorithm = null;
    private GhettoTranslator ghettoTranslator = new GhettoTranslator();
    private ABDLTranslator abdlTranslator = new ABDLTranslator();
    private int mode = 0;
    public DiGhettoTranslator(Kokoro kokoro) {
        super(kokoro);
    }

    @Override
    public void input(String ear, String skin, String eye) {
        if (ear.isEmpty()) {
            return;
        }
        if (ear.contains("shut up") || ear.contains("talk normal")) {
            mode = 0;
        }
        if (ear.contains("activate black")) {
            mode = 1;
        }
        if (ear.contains("activate pink")) {
            mode = 2;
        }
        if (ear.contains("activate blue")) {
            mode = 3;
        }
        // pink talk
        switch (mode) {
            case 1:
                algorithm = diSkillUtils.customizedVerbatimGorithm("translator",
                        new APSay(1, ghettoTranslator.translate(ear)));
                break;
            case 2:
                algorithm = diSkillUtils.customizedVerbatimGorithm("translator", new APSay(1, uwu.convertToUwU(ear)));
                break;
            case 3:
                algorithm = diSkillUtils.customizedVerbatimGorithm("translator",
                        new APSay(1, abdlTranslator.translatePlusUwU(ear)));
                break;
            default:
                algorithm = diSkillUtils.customizedVerbatimGorithm("translator", new APVerbatim(ear));
                break;
        }

    }

    @Override
    public void output(Neuron noiron) {
        if (algorithm != null) {
            noiron.algParts.add(algorithm);
            algorithm = null;
        }
    }
}


this skill is to be placed in a chobit placed last in the Brain class c'tor.
we have 3 fun modes her to translate the waifubots output :
ghetto talk, baby talk, and UwU

descriptiontranslator skills 1st example EmptyRe: translator skills 1st example

more_horiz
init code snippet (from main activity)

chii = ChobitV2(Personality1(SharedPrefDB(this)))
chii!!.loadPersonality(Personality1(SharedPrefDB(this)))
tts = TextToSpeech(this, this)
cerabellumV2=CerabellumV2(this)//TODO
val translatorChobit:ChobitV2 = ChobitV2(PersonalityTranslator(SharedPrefDB(this)))
brain = Brain(cerabellumV2!!,chii!!,translatorChobit)

the translation chobit modifies the output of the upper chobits, thus acting as a translator or
output modifier inside the brain class which daisy chains chobits, preferably 2 or 3 chobits overall
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply