<?php 

defined('ABSPATH') or die("You can't access this file directly.");


add_filter('qcld_seohelp_openai_filter_for_style', 'qcld_seohelp_openai_filter_for_style', 10, 2);
function qcld_seohelp_openai_filter_for_style($qcld_writing_style, $qcld_language){
    
        if ( $qcld_writing_style == "descr" ) {
            
            if ( $qcld_language == "en" ) {
                $writing_style = "descriptive";
            } else {
                
                if ( $qcld_language == "de" ) {
                    $writing_style = "beschreibend";
                } else {
                    
                    if ( $qcld_language == "fr" ) {
                        $writing_style = "descriptif";
                    } else {
                        
                        if ( $qcld_language == "es" ) {
                            $writing_style = "descriptivo";
                        } else {
                            
                            if ( $qcld_language == "it" ) {
                                $writing_style = "descrittivo";
                            } else {
                                
                                if ( $qcld_language == "pt" ) {
                                    $writing_style = "descritivo";
                                } else {
                                    
                                    if ( $qcld_language == "nl" ) {
                                        $writing_style = "beschrijvend";
                                    } else {
                                        
                                        if ( $qcld_language == "ru" ) {
                                            $writing_style = "описательный";
                                        } else {
                                            
                                            if ( $qcld_language == "ja" ) {
                                                $writing_style = "記述的";
                                            } else {
                                                
                                                if ( $qcld_language == "ko" ) {
                                                    $writing_style = "기술적인";
                                                } else {
                                                    
                                                    if ( $qcld_language == "zh" ) {
                                                        $writing_style = "描述性";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ko" ) {
                                                            $writing_style = "기술적인";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "id" ) {
                                                                $writing_style = "deskriptif";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "tr" ) {
                                                                    $writing_style = "tanımlayıcı";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "hi" ) {
                                                                        $writing_style = "वर्णनात्मक";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "pl" ) {
                                                                            $writing_style = "opisowy";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "uk" ) {
                                                                                $writing_style = "описовий";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ar" ) {
                                                                                    $writing_style = "وصفي";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ro" ) {
                                                                                        $writing_style = "descriptiv";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "hu" ) {
                                                                                            $writing_style = "leírásos";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                $writing_style = "popisný";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "el" ) {
                                                                                                    $writing_style = "περιγραφικός";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                        $writing_style = "описателен";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                            $writing_style = "beskrivande";
                                                                                                        } else {
                                                                                                            $writing_style = "descriptive";
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            }
        
        } else {
            
            if ( $qcld_writing_style == "creat" ) {
                
                if ( $qcld_language == "en" ) {
                    $writing_style = "creative";
                } else {
                    
                    if ( $qcld_language == "de" ) {
                        $writing_style = "kreativ";
                    } else {
                        
                        if ( $qcld_language == "fr" ) {
                            $writing_style = "créatif";
                        } else {
                            
                            if ( $qcld_language == "es" ) {
                                $writing_style = "creativo";
                            } else {
                                
                                if ( $qcld_language == "it" ) {
                                    $writing_style = "creativo";
                                } else {
                                    
                                    if ( $qcld_language == "pt" ) {
                                        $writing_style = "criativo";
                                    } else {
                                        
                                        if ( $qcld_language == "nl" ) {
                                            $writing_style = "creatief";
                                        } else {
                                            
                                            if ( $qcld_language == "ru" ) {
                                                $writing_style = "творческий";
                                            } else {
                                                
                                                if ( $qcld_language == "ja" ) {
                                                    $writing_style = "クリエイティブ";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ko" ) {
                                                        $writing_style = "창의적인";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "zh" ) {
                                                            $writing_style = "创造性";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ko" ) {
                                                                $writing_style = "창의적인";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "id" ) {
                                                                    $writing_style = "kreatif";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "tr" ) {
                                                                        $writing_style = "yaratıcı";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "hi" ) {
                                                                            $writing_style = "रचनात्मक";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "pl" ) {
                                                                                $writing_style = "twórczy";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "uk" ) {
                                                                                    $writing_style = "творчий";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ar" ) {
                                                                                        $writing_style = "إبداعي";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ro" ) {
                                                                                            $writing_style = "creativ";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                $writing_style = "kreatív";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                    $writing_style = "tvůrčí";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                        $writing_style = "δημιουργικός";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                            $writing_style = "творчески";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                $writing_style = "kreativ";
                                                                                                            } else {
                                                                                                                $writing_style = "creative";
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            } else {
                
                if ( $qcld_writing_style == "narra" ) {
                    
                    if ( $qcld_language == "en" ) {
                        $writing_style = "narrative";
                    } else {
                        
                        if ( $qcld_language == "de" ) {
                            $writing_style = "narrativ";
                        } else {
                            
                            if ( $qcld_language == "fr" ) {
                                $writing_style = "narratif";
                            } else {
                                
                                if ( $qcld_language == "es" ) {
                                    $writing_style = "narrativo";
                                } else {
                                    
                                    if ( $qcld_language == "it" ) {
                                        $writing_style = "narrativo";
                                    } else {
                                        
                                        if ( $qcld_language == "pt" ) {
                                            $writing_style = "narrativo";
                                        } else {
                                            
                                            if ( $qcld_language == "nl" ) {
                                                $writing_style = "narratief";
                                            } else {
                                                
                                                if ( $qcld_language == "ru" ) {
                                                    $writing_style = "рассказ";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ja" ) {
                                                        $writing_style = "物語";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ko" ) {
                                                            $writing_style = "이야기";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "zh" ) {
                                                                $writing_style = "叙事";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ko" ) {
                                                                    $writing_style = "이야기";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "id" ) {
                                                                        $writing_style = "narratif";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "tr" ) {
                                                                            $writing_style = "anlatıcı";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "hi" ) {
                                                                                $writing_style = "कथा";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "pl" ) {
                                                                                    $writing_style = "opowiadanie";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "uk" ) {
                                                                                        $writing_style = "розповідь";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ar" ) {
                                                                                            $writing_style = "قصة";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                $writing_style = "narrativ";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                    $writing_style = "narratív";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                        $writing_style = "příběh";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                            $writing_style = "περιγραφικός";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                $writing_style = "рассказ";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                    $writing_style = "narrativ";
                                                                                                                } else {
                                                                                                                    $writing_style = "narrative";
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                } else {
                    
                    if ( $qcld_writing_style == "persu" ) {
                        
                        if ( $qcld_language == "en" ) {
                            $writing_style = "persuasive";
                        } else {
                            
                            if ( $qcld_language == "de" ) {
                                $writing_style = "überzeugend";
                            } else {
                                
                                if ( $qcld_language == "fr" ) {
                                    $writing_style = "persuasif";
                                } else {
                                    
                                    if ( $qcld_language == "es" ) {
                                        $writing_style = "persuasivo";
                                    } else {
                                        
                                        if ( $qcld_language == "it" ) {
                                            $writing_style = "persuasivo";
                                        } else {
                                            
                                            if ( $qcld_language == "pt" ) {
                                                $writing_style = "persuasivo";
                                            } else {
                                                
                                                if ( $qcld_language == "nl" ) {
                                                    $writing_style = "overtuigend";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ru" ) {
                                                        $writing_style = "убеждение";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ja" ) {
                                                            $writing_style = "説得力のある";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ko" ) {
                                                                $writing_style = "설득력 있는";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "zh" ) {
                                                                    $writing_style = "说服力";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ko" ) {
                                                                        $writing_style = "설득력 있는";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "id" ) {
                                                                            $writing_style = "persuasif";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "tr" ) {
                                                                                $writing_style = "ikna edici";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "hi" ) {
                                                                                    $writing_style = "प्रेरक";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "pl" ) {
                                                                                        $writing_style = "przekonywujący";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "uk" ) {
                                                                                            $writing_style = "переконливий";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                $writing_style = "مقنع";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                    $writing_style = "persuasiv";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                        $writing_style = "persuasív";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                            $writing_style = "přesvědčivý";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                $writing_style = "περιεκτικός";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                    $writing_style = "привличащ";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                        $writing_style = "persuasiv";
                                                                                                                    } else {
                                                                                                                        $writing_style = "persuasive";
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    } else {
                        
                        if ( $qcld_writing_style == "expos" ) {
                            
                            if ( $qcld_language == "en" ) {
                                $writing_style = "expository";
                            } else {
                                
                                if ( $qcld_language == "de" ) {
                                    $writing_style = "erklärend";
                                } else {
                                    
                                    if ( $qcld_language == "fr" ) {
                                        $writing_style = "exposé";
                                    } else {
                                        
                                        if ( $qcld_language == "es" ) {
                                            $writing_style = "expositivo";
                                        } else {
                                            
                                            if ( $qcld_language == "it" ) {
                                                $writing_style = "espositivo";
                                            } else {
                                                
                                                if ( $qcld_language == "pt" ) {
                                                    $writing_style = "expositivo";
                                                } else {
                                                    
                                                    if ( $qcld_language == "nl" ) {
                                                        $writing_style = "expositief";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ru" ) {
                                                            $writing_style = "описательный";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ja" ) {
                                                                $writing_style = "説明的";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ko" ) {
                                                                    $writing_style = "설명적인";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "zh" ) {
                                                                        $writing_style = "说明性";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ko" ) {
                                                                            $writing_style = "설명적인";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "id" ) {
                                                                                $writing_style = "eksposisi";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "tr" ) {
                                                                                    $writing_style = "açıklayıcı";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "hi" ) {
                                                                                        $writing_style = "व्याख्यात्मक";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "pl" ) {
                                                                                            $writing_style = "wyjaśniający";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                $writing_style = "описовий";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                    $writing_style = "وصفي";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                        $writing_style = "expozitiv";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                            $writing_style = "előadó";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                $writing_style = "vysvětlující";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                    $writing_style = "εξηγητικός";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                        $writing_style = "обяснителен";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                            $writing_style = "expositorisk";
                                                                                                                        } else {
                                                                                                                            $writing_style = "expository";
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        } else {
                            
                            if ( $qcld_writing_style == "infor" ) {
                                
                                if ( $qcld_language == "en" ) {
                                    $writing_style = "informative";
                                } else {
                                    
                                    if ( $qcld_language == "de" ) {
                                        $writing_style = "informierend";
                                    } else {
                                        
                                        if ( $qcld_language == "fr" ) {
                                            $writing_style = "informatif";
                                        } else {
                                            
                                            if ( $qcld_language == "es" ) {
                                                $writing_style = "informativo";
                                            } else {
                                                
                                                if ( $qcld_language == "it" ) {
                                                    $writing_style = "informativo";
                                                } else {
                                                    
                                                    if ( $qcld_language == "pt" ) {
                                                        $writing_style = "informativo";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "nl" ) {
                                                            $writing_style = "informatief";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ru" ) {
                                                                $writing_style = "информативный";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ja" ) {
                                                                    $writing_style = "情報";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ko" ) {
                                                                        $writing_style = "정보";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "zh" ) {
                                                                            $writing_style = "信息";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ko" ) {
                                                                                $writing_style = "정보";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "id" ) {
                                                                                    $writing_style = "informasi";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "tr" ) {
                                                                                        $writing_style = "bilgilendirici";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "hi" ) {
                                                                                            $writing_style = "सूचनात्मक";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                $writing_style = "informacyjny";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                    $writing_style = "інформативний";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                        $writing_style = "معلوماتي";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                            $writing_style = "informativ";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                $writing_style = "informáló";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                    $writing_style = "informační";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                        $writing_style = "πληροφοριακός";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                            $writing_style = "информативен";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                $writing_style = "informativ";
                                                                                                                            } else {
                                                                                                                                $writing_style = "informative";
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                                
                                // add reflective
                            } else {
                                
                                if ( $qcld_writing_style == "refle" ) {
                                    
                                    if ( $qcld_language == "en" ) {
                                        $writing_style = "reflective";
                                    } else {
                                        
                                        if ( $qcld_language == "de" ) {
                                            $writing_style = "reflektierend";
                                        } else {
                                            
                                            if ( $qcld_language == "fr" ) {
                                                $writing_style = "réfléchi";
                                            } else {
                                                
                                                if ( $qcld_language == "es" ) {
                                                    $writing_style = "reflexivo";
                                                } else {
                                                    
                                                    if ( $qcld_language == "it" ) {
                                                        $writing_style = "reflessivo";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "pt" ) {
                                                            $writing_style = "reflexivo";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "nl" ) {
                                                                $writing_style = "reflectief";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ru" ) {
                                                                    $writing_style = "рефлексивный";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ja" ) {
                                                                        $writing_style = "反射的";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ko" ) {
                                                                            $writing_style = "반사적인";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "zh" ) {
                                                                                $writing_style = "反射的";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ko" ) {
                                                                                    $writing_style = "반사적인";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "id" ) {
                                                                                        $writing_style = "reflektif";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "tr" ) {
                                                                                            $writing_style = "yansıtıcı";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                $writing_style = "चिंतनशील";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                    $writing_style = "refleksyjny";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                        $writing_style = "рефлексивний";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                            $writing_style = "مرئي";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                $writing_style = "reflectiv";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                    $writing_style = "visszatükröző";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                                        $writing_style = "reflexní";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                            $writing_style = "αναστρεφτικός";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                $writing_style = "рефлексивен";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                    $writing_style = "reflekterande";
                                                                                                                                } else {
                                                                                                                                    $writing_style = "reflective";
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                    
                                    // add argumentative
                                } else {
                                    
                                    if ( $qcld_writing_style == "argum" ) {
                                        
                                        if ( $qcld_language == "en" ) {
                                            $writing_style = "argumentative";
                                        } else {
                                            
                                            if ( $qcld_language == "de" ) {
                                                $writing_style = "argumentativ";
                                            } else {
                                                
                                                if ( $qcld_language == "fr" ) {
                                                    $writing_style = "argumentatif";
                                                } else {
                                                    
                                                    if ( $qcld_language == "es" ) {
                                                        $writing_style = "argumentativo";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "it" ) {
                                                            $writing_style = "argomentativo";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "pt" ) {
                                                                $writing_style = "argumentativo";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "nl" ) {
                                                                    $writing_style = "argumentatief";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ru" ) {
                                                                        $writing_style = "аргументативный";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ja" ) {
                                                                            $writing_style = "論争的";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ko" ) {
                                                                                $writing_style = "논쟁적인";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "zh" ) {
                                                                                    $writing_style = "争论的";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ko" ) {
                                                                                        $writing_style = "논쟁적인";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "id" ) {
                                                                                            $writing_style = "argumentatif";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                $writing_style = "tartışmalı";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                    $writing_style = "विवादात्मक";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                        $writing_style = "argumentacyjny";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                            $writing_style = "аргументативний";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                $writing_style = "مناقشة";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                    $writing_style = "argumentativ";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                        $writing_style = "vitatható";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                            $writing_style = "argumentativní";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                $writing_style = "αργυρολογικός";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                    $writing_style = "аргументативен";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                        $writing_style = "argumentativ";
                                                                                                                                    } else {
                                                                                                                                        $writing_style = "argumentative";
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    } else {
                                        
                                        if ( $qcld_writing_style == "analy" ) {
                                            
                                            if ( $qcld_language == "en" ) {
                                                $writing_style = "analytical";
                                            } else {
                                                
                                                if ( $qcld_language == "de" ) {
                                                    $writing_style = "analytisch";
                                                } else {
                                                    
                                                    if ( $qcld_language == "fr" ) {
                                                        $writing_style = "analytique";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "es" ) {
                                                            $writing_style = "analítico";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "it" ) {
                                                                $writing_style = "analitico";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "pt" ) {
                                                                    $writing_style = "analítico";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "nl" ) {
                                                                        $writing_style = "analytisch";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ru" ) {
                                                                            $writing_style = "аналитический";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ja" ) {
                                                                                $writing_style = "分析的";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ko" ) {
                                                                                    $writing_style = "분석적인";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "zh" ) {
                                                                                        $writing_style = "分析的";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ko" ) {
                                                                                            $writing_style = "분석적인";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "id" ) {
                                                                                                $writing_style = "analitis";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "tr" ) {
                                                                                                    $writing_style = "analitik";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "hi" ) {
                                                                                                        $writing_style = "विश्लेषणीय";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "pl" ) {
                                                                                                            $writing_style = "analizujący";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                                $writing_style = "аналітичний";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                                    $writing_style = "تحليلي";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                                        $writing_style = "analitic";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                                            $writing_style = "elemző";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                                $writing_style = "analytický";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                                    $writing_style = "αναλυτικός";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                                        $writing_style = "аналитичен";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                                            $writing_style = "analytisk";
                                                                                                                                        } else {
                                                                                                                                            $writing_style = "analytical";
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        } else {
                                            
                                            if ( $qcld_writing_style == "criti" ) {
                                                
                                                if ( $qcld_language == "en" ) {
                                                    $writing_style = "critical";
                                                } else {
                                                    
                                                    if ( $qcld_language == "de" ) {
                                                        $writing_style = "kritisch";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "fr" ) {
                                                            $writing_style = "critique";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "es" ) {
                                                                $writing_style = "crítico";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "it" ) {
                                                                    $writing_style = "critico";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "pt" ) {
                                                                        $writing_style = "crítico";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "nl" ) {
                                                                            $writing_style = "kritisch";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ru" ) {
                                                                                $writing_style = "критический";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ja" ) {
                                                                                    $writing_style = "批判的";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ko" ) {
                                                                                        $writing_style = "비판적인";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "zh" ) {
                                                                                            $writing_style = "批判的";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                $writing_style = "비판적인";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "id" ) {
                                                                                                    $writing_style = "kritikal";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "tr" ) {
                                                                                                        $writing_style = "eleştirel";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "hi" ) {
                                                                                                            $writing_style = "नाजुक";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                                $writing_style = "krytyczny";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                                    $writing_style = "критичний";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                                        $writing_style = "حريص";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                                            $writing_style = "critic";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                                $writing_style = "kritikus";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                                    $writing_style = "kritický";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                                        $writing_style = "κριτικός";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                                            $writing_style = "критичен";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                                $writing_style = "kritisk";
                                                                                                                                            } else {
                                                                                                                                                $writing_style = "critical";
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            } else {
                                                
                                                if ( $qcld_writing_style == "evalu" ) {
                                                    
                                                    if ( $qcld_language == "en" ) {
                                                        $writing_style = "evaluative";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "de" ) {
                                                            $writing_style = "evaluierend";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "fr" ) {
                                                                $writing_style = "évaluatif";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "es" ) {
                                                                    $writing_style = "evaluativo";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "it" ) {
                                                                        $writing_style = "valutativo";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "pt" ) {
                                                                            $writing_style = "avaliativo";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "nl" ) {
                                                                                $writing_style = "evaluerend";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ru" ) {
                                                                                    $writing_style = "оценочный";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ja" ) {
                                                                                        $writing_style = "評価的";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ko" ) {
                                                                                            $writing_style = "평가적인";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "zh" ) {
                                                                                                $writing_style = "评价的";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                    $writing_style = "평가적인";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "id" ) {
                                                                                                        $writing_style = "evaluatif";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "tr" ) {
                                                                                                            $writing_style = "değerlendirici";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                                $writing_style = "मूल्यांकन करनेवाला";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                                    $writing_style = "oceniający";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                                        $writing_style = "оцінювальний";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                                            $writing_style = "تقييمي";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                                $writing_style = "evaluativ";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                                    $writing_style = "értékelő";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                                                        $writing_style = "posuzující";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                                            $writing_style = "αξιολογητικός";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                                $writing_style = "оценителен";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                                    $writing_style = "bedömning";
                                                                                                                                                } else {
                                                                                                                                                    $writing_style = "evaluative";
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                } else {
                                                    
                                                    if ( $qcld_writing_style == "journ" ) {
                                                        
                                                        if ( $qcld_language == "en" ) {
                                                            $writing_style = "journalistic";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "de" ) {
                                                                $writing_style = "journalistisch";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "fr" ) {
                                                                    $writing_style = "journalistique";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "es" ) {
                                                                        $writing_style = "periodístico";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "it" ) {
                                                                            $writing_style = "giornalistico";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "pt" ) {
                                                                                $writing_style = "jornalístico";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "nl" ) {
                                                                                    $writing_style = "journalistiek";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ru" ) {
                                                                                        $writing_style = "журналистский";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ja" ) {
                                                                                            $writing_style = "ジャーナリスト";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                $writing_style = "저널리스트";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "zh" ) {
                                                                                                    $writing_style = "记者";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ko" ) {
                                                                                                        $writing_style = "저널리스트";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "id" ) {
                                                                                                            $writing_style = "jurnalistik";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                                $writing_style = "gazeteci";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                                    $writing_style = "पत्रकारी";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                                        $writing_style = "dziennikarski";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                                            $writing_style = "журналістський";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                                $writing_style = "صحفي";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                                    $writing_style = "jurnalistic";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                        $writing_style = "újságírói";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                                            $writing_style = "žurnalistický";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                                $writing_style = "Επαγγελματικός";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                                    $writing_style = "журналистически";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                                        $writing_style = "journalistisk";
                                                                                                                                                    } else {
                                                                                                                                                        $writing_style = "journalistic";
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    } else {
                                                        
                                                        if ( $qcld_writing_style == "techn" ) {
                                                            
                                                            if ( $qcld_language == "en" ) {
                                                                $writing_style = "technical";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "de" ) {
                                                                    $writing_style = "technisch";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "fr" ) {
                                                                        $writing_style = "technique";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "es" ) {
                                                                            $writing_style = "técnico";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "it" ) {
                                                                                $writing_style = "tecnico";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "pt" ) {
                                                                                    $writing_style = "técnico";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "nl" ) {
                                                                                        $writing_style = "technisch";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ru" ) {
                                                                                            $writing_style = "технический";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ja" ) {
                                                                                                $writing_style = "技術的";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                    $writing_style = "기술적인";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "zh" ) {
                                                                                                        $writing_style = "技术的";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ko" ) {
                                                                                                            $writing_style = "기술적인";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "id" ) {
                                                                                                                $writing_style = "teknis";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "tr" ) {
                                                                                                                    $writing_style = "teknik";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "hi" ) {
                                                                                                                        $writing_style = "तकनीकी";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "pl" ) {
                                                                                                                            $writing_style = "techniczny";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                                                $writing_style = "технічний";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                                                    $writing_style = "فني";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                                                        $writing_style = "tehnica";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                                                            $writing_style = "technikai";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                                                $writing_style = "technický";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                                                    $writing_style = "τεχνικός";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                                                        $writing_style = "технически";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                                                            $writing_style = "teknisk";
                                                                                                                                                        } else {
                                                                                                                                                            $writing_style = "technical";
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        } else {
                                                            
                                                            if ( $qcld_writing_style == "repor" ) {
                                                                
                                                                if ( $qcld_language == "en" ) {
                                                                    $writing_style = "report";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "de" ) {
                                                                        $writing_style = "Bericht";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "fr" ) {
                                                                            $writing_style = "rapport";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "es" ) {
                                                                                $writing_style = "informe";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "it" ) {
                                                                                    $writing_style = "rapporto";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "pt" ) {
                                                                                        $writing_style = "relatório";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "nl" ) {
                                                                                            $writing_style = "verslag";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ru" ) {
                                                                                                $writing_style = "отчет";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ja" ) {
                                                                                                    $writing_style = "報告";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ko" ) {
                                                                                                        $writing_style = "보고서";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "zh" ) {
                                                                                                            $writing_style = "报告";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                                $writing_style = "보고서";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "id" ) {
                                                                                                                    $writing_style = "laporan";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "tr" ) {
                                                                                                                        $writing_style = "rapor";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "hi" ) {
                                                                                                                            $writing_style = "रिपोर्ट";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                                                $writing_style = "raport";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                                                    $writing_style = "звіт";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                                                        $writing_style = "تقرير";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                                                            $writing_style = "raport";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                                                $writing_style = "jelentés";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                                                    $writing_style = "zpráva";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                                                        $writing_style = "αναφορά";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                                                            $writing_style = "доклад";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                                                $writing_style = "rapport";
                                                                                                                                                            } else {
                                                                                                                                                                $writing_style = "report";
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            } else {
                                                                
                                                                if ( $qcld_writing_style == "resea" ) {
                                                                    
                                                                    if ( $qcld_language == "en" ) {
                                                                        $writing_style = "research";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "de" ) {
                                                                            $writing_style = "Forschung";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "fr" ) {
                                                                                $writing_style = "recherche";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "es" ) {
                                                                                    $writing_style = "investigación";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "it" ) {
                                                                                        $writing_style = "ricerca";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "pt" ) {
                                                                                            $writing_style = "pesquisa";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "nl" ) {
                                                                                                $writing_style = "onderzoek";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ru" ) {
                                                                                                    $writing_style = "исследование";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ja" ) {
                                                                                                        $writing_style = "研究";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ko" ) {
                                                                                                            $writing_style = "연구";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "zh" ) {
                                                                                                                $writing_style = "研究";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                                    $writing_style = "연구";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "id" ) {
                                                                                                                        $writing_style = "penelitian";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "tr" ) {
                                                                                                                            $writing_style = "araştırma";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                                                $writing_style = "अनुसंधान";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                                                    $writing_style = "badania";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                                                        $writing_style = "дослідження";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                                                            $writing_style = "بحث";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                                                $writing_style = "cercetare";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                                                    $writing_style = "kutatás";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                                                                        $writing_style = "výzkum";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                                                            $writing_style = "ερευνα";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                                                $writing_style = "изследване";
                                                                                                                                                            } else {
                                                                                                                                                                
                                                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                                                    $writing_style = "forskning";
                                                                                                                                                                } else {
                                                                                                                                                                    $writing_style = "research";
                                                                                                                                                                }
                                                                                                                                                            
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                } else {
                                                                    
                                                                    if ( $qcld_writing_style == "simpl" ) {
                                                                        
                                                                        if ( $qcld_language == "en" ) {
                                                                            $writing_style = "simple";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "de" ) {
                                                                                $writing_style = "einfach";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "fr" ) {
                                                                                    $writing_style = "simple";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "es" ) {
                                                                                        $writing_style = "simple";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "it" ) {
                                                                                            $writing_style = "semplice";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pt" ) {
                                                                                                $writing_style = "simples";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "nl" ) {
                                                                                                    $writing_style = "eenvoudig";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ru" ) {
                                                                                                        $writing_style = "простой";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ja" ) {
                                                                                                            $writing_style = "シンプル";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                                $writing_style = "단순한";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "zh" ) {
                                                                                                                    $writing_style = "简单";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ko" ) {
                                                                                                                        $writing_style = "단순한";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "id" ) {
                                                                                                                            $writing_style = "sederhana";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                                                $writing_style = "basit";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                                                    $writing_style = "सरल";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                                                        $writing_style = "prosty";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                                                            $writing_style = "простий";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                                                $writing_style = "بسيط";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                                                    $writing_style = "simplu";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                                        $writing_style = "egyszerű";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                                                            $writing_style = "jednoduchý";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                                                $writing_style = "απλός";
                                                                                                                                                            } else {
                                                                                                                                                                
                                                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                                                    $writing_style = "прост";
                                                                                                                                                                } else {
                                                                                                                                                                    
                                                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                                                        $writing_style = "enkel";
                                                                                                                                                                    } else {
                                                                                                                                                                        $writing_style = "simple";
                                                                                                                                                                    }
                                                                                                                                                                
                                                                                                                                                                }
                                                                                                                                                            
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    } else {
                                                                        // informative
                                                                        
                                                                        if ( $qcld_language == "en" ) {
                                                                            $writing_style = "informative";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "de" ) {
                                                                                $writing_style = "informierend";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "fr" ) {
                                                                                    $writing_style = "informatif";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "es" ) {
                                                                                        $writing_style = "informativo";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "it" ) {
                                                                                            $writing_style = "informativo";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pt" ) {
                                                                                                $writing_style = "informativo";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "nl" ) {
                                                                                                    $writing_style = "informatief";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ru" ) {
                                                                                                        $writing_style = "информативный";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ja" ) {
                                                                                                            $writing_style = "情報";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                                $writing_style = "정보";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "zh" ) {
                                                                                                                    $writing_style = "信息";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ko" ) {
                                                                                                                        $writing_style = "정보";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "id" ) {
                                                                                                                            $writing_style = "informasi";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                                                $writing_style = "bilgilendirici";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                                                    $writing_style = "सूचनात्मक";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                                                        $writing_style = "informacyjny";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                                                            $writing_style = "інформативний";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                                                $writing_style = "معلوماتي";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                                                    $writing_style = "informativ";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                                        $writing_style = "információs";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                                                            $writing_style = "informační";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                                                $writing_style = "πληροφοριακός";
                                                                                                                                                            } else {
                                                                                                                                                                
                                                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                                                    $writing_style = "информативен";
                                                                                                                                                                } else {
                                                                                                                                                                    
                                                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                                                        $writing_style = "informativ";
                                                                                                                                                                    } else {
                                                                                                                                                                        $writing_style = "informative";
                                                                                                                                                                    }
                                                                                                                                                                
                                                                                                                                                                }
                                                                                                                                                            
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            }
        
        }

	return $writing_style;
}



add_filter('qcld_seohelp_openai_filter_for_tone', 'qcld_seohelp_openai_filter_for_tone', 10, 2);
function qcld_seohelp_openai_filter_for_tone($qcld_writing_tone, $qcld_language){
    
      
        
        if ( $qcld_writing_tone == "asser" ) {
            
            if ( $qcld_language == "en" ) {
                $tone_text = "Writing tone: assertive";
            } else {
                
                if ( $qcld_language == "es" ) {
                    $tone_text = "Tono de escritura: asertivo";
                } else {
                    
                    if ( $qcld_language == "fr" ) {
                        $tone_text = "Ton d'écriture: assertif";
                    } else {
                        
                        if ( $qcld_language == "de" ) {
                            $tone_text = "Schreibton: durchsetzungsfähig";
                        } else {
                            
                            if ( $qcld_language == "it" ) {
                                $tone_text = "Tono di scrittura: assertivo";
                            } else {
                                
                                if ( $qcld_language == "pt" ) {
                                    $tone_text = "Tom de escrita: assertivo";
                                } else {
                                    
                                    if ( $qcld_language == "nl" ) {
                                        $tone_text = "Schrijftoon: assertief";
                                    } else {
                                        
                                        if ( $qcld_language == "ru" ) {
                                            $tone_text = "Тональность текста: утвердительная";
                                        } else {
                                            
                                            if ( $qcld_language == "ja" ) {
                                                $tone_text = "文章の雰囲気: 自信を持って";
                                            } else {
                                                
                                                if ( $qcld_language == "zh" ) {
                                                    $tone_text = "写作氛围: 自信";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ko" ) {
                                                        $tone_text = "글의 분위기: 자신감";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "id" ) {
                                                            $tone_text = "Tingkah laku menulis: asertif";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "tr" ) {
                                                                $tone_text = "Yazım tonu: iddialı";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "hi" ) {
                                                                    $tone_text = "लेखन स्वर: मुखर";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "pl" ) {
                                                                        $tone_text = "Ton pisania: asertywny";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "uk" ) {
                                                                            $tone_text = "Тон письма: напористий";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ar" ) {
                                                                                $tone_text = "نغمة الكتابة: حازمة";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ro" ) {
                                                                                    $tone_text = "Tonalitatea scrisului: asertiv";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "hu" ) {
                                                                                        $tone_text = "Írás hangulata: határozott";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "cs" ) {
                                                                                            $tone_text = "Tón psaní: asertivní";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "el" ) {
                                                                                                $tone_text = "Τόνος συγγραφής: αποφασιστικός";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                    $tone_text = "Тон на писане: асертивен";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                        $tone_text = "Skrivton: bestämd";
                                                                                                    } else {
                                                                                                        $tone_text = "Writing tone: assertive";
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            }
        
        } else {
            
            if ( $qcld_writing_tone == "cheer" ) {
                
                if ( $qcld_language == "en" ) {
                    $tone_text = "Writing tone: cheerful";
                } else {
                    
                    if ( $qcld_language == "es" ) {
                        $tone_text = "Tono de escritura: alegre";
                    } else {
                        
                        if ( $qcld_language == "fr" ) {
                            $tone_text = "Ton d'écriture: joyeux";
                        } else {
                            
                            if ( $qcld_language == "de" ) {
                                $tone_text = "Schreibton: fröhlich";
                            } else {
                                
                                if ( $qcld_language == "it" ) {
                                    $tone_text = "Tono di scrittura: allegro";
                                } else {
                                    
                                    if ( $qcld_language == "pt" ) {
                                        $tone_text = "Tom de escrita: alegre";
                                    } else {
                                        
                                        if ( $qcld_language == "nl" ) {
                                            $tone_text = "Schrijftoon: vrolijk";
                                        } else {
                                            
                                            if ( $qcld_language == "ru" ) {
                                                $tone_text = "Тональность текста: веселая";
                                            } else {
                                                
                                                if ( $qcld_language == "ja" ) {
                                                    $tone_text = "文章の雰囲気: 楽しい";
                                                } else {
                                                    
                                                    if ( $qcld_language == "zh" ) {
                                                        $tone_text = "写作氛围: 欢乐";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ko" ) {
                                                            $tone_text = "글의 분위기: 기쁨";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "id" ) {
                                                                $tone_text = "Tingkah laku menulis: ceria";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "tr" ) {
                                                                    $tone_text = "Yazım tonu: neşeli";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "hi" ) {
                                                                        $tone_text = "लेखन स्वर: हर्षित";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "pl" ) {
                                                                            $tone_text = "Ton pisania: radosny";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "uk" ) {
                                                                                $tone_text = "Тон письма: веселий";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ar" ) {
                                                                                    $tone_text = "نغمة الكتابة: مرح";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ro" ) {
                                                                                        $tone_text = "Tonalitatea scrisului: vesel";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "hu" ) {
                                                                                            $tone_text = "Írás hangulata: vidám";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                $tone_text = "Tón psaní: veselý";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "el" ) {
                                                                                                    $tone_text = "Τόνος συγγραφής: χαρούμενος";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                        $tone_text = "Тон на писане: весел";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                            $tone_text = "Skrivton: glad";
                                                                                                        } else {
                                                                                                            $tone_text = "Writing tone: cheerful";
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            } else {
                
                if ( $qcld_writing_tone == "humor" ) {
                    
                    if ( $qcld_language == "en" ) {
                        $tone_text = "Writing tone: humorous";
                    } else {
                        
                        if ( $qcld_language == "es" ) {
                            $tone_text = "Tono de escritura: humorístico";
                        } else {
                            
                            if ( $qcld_language == "fr" ) {
                                $tone_text = "Ton d'écriture: humoristique";
                            } else {
                                
                                if ( $qcld_language == "de" ) {
                                    $tone_text = "Schreibton: humorvoll";
                                } else {
                                    
                                    if ( $qcld_language == "it" ) {
                                        $tone_text = "Tono di scrittura: umoristico";
                                    } else {
                                        
                                        if ( $qcld_language == "pt" ) {
                                            $tone_text = "Tom de escrita: humorístico";
                                        } else {
                                            
                                            if ( $qcld_language == "nl" ) {
                                                $tone_text = "Schrijftoon: humoristisch";
                                            } else {
                                                
                                                if ( $qcld_language == "ru" ) {
                                                    $tone_text = "Тональность текста: юмористическая";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ja" ) {
                                                        $tone_text = "文章の雰囲気: ユーモア";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "zh" ) {
                                                            $tone_text = "写作氛围: 幽默";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ko" ) {
                                                                $tone_text = "글의 분위기: 유머";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "id" ) {
                                                                    $tone_text = "Tingkah laku menulis: humoris";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "tr" ) {
                                                                        $tone_text = "Yazım tonu: komik";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "hi" ) {
                                                                            $tone_text = "लेखन स्वर: विनोदी";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "pl" ) {
                                                                                $tone_text = "Ton pisania: humorystyczny";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "uk" ) {
                                                                                    $tone_text = "Тон письма: гумористичний";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ar" ) {
                                                                                        $tone_text = "نغمة الكتابة: روح الدعابة";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ro" ) {
                                                                                            $tone_text = "Tonalitatea scrisului: umoristic";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                $tone_text = "Írás hangulata: humoros";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                    $tone_text = "Tón psaní: humoristický";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                        $tone_text = "Τόνος συγγραφής: χιουμοριστικός";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                            $tone_text = "Тон на писане: хумористичен";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                $tone_text = "Skrivton: humoristisk";
                                                                                                            } else {
                                                                                                                $tone_text = "Writing tone: humorous";
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                } else {
                    
                    if ( $qcld_writing_tone == "inspi" ) {
                        
                        if ( $qcld_language == "en" ) {
                            $tone_text = "Writing tone: inspirational";
                        } else {
                            
                            if ( $qcld_language == "es" ) {
                                $tone_text = "Tono de escritura: inspirador";
                            } else {
                                
                                if ( $qcld_language == "fr" ) {
                                    $tone_text = "Ton d'écriture: inspirant";
                                } else {
                                    
                                    if ( $qcld_language == "de" ) {
                                        $tone_text = "Schreibton: inspirierend";
                                    } else {
                                        
                                        if ( $qcld_language == "it" ) {
                                            $tone_text = "Tono di scrittura: ispiratore";
                                        } else {
                                            
                                            if ( $qcld_language == "pt" ) {
                                                $tone_text = "Tom de escrita: inspirador";
                                            } else {
                                                
                                                if ( $qcld_language == "nl" ) {
                                                    $tone_text = "Schrijftoon: inspirerend";
                                                } else {
                                                    
                                                    if ( $qcld_language == "ru" ) {
                                                        $tone_text = "Тональность текста: вдохновляющая";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ja" ) {
                                                            $tone_text = "文章の雰囲気: 活気ある";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "zh" ) {
                                                                $tone_text = "写作氛围: 激励";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ko" ) {
                                                                    $tone_text = "글의 분위기: 영감";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "id" ) {
                                                                        $tone_text = "Tingkah laku menulis: inspiratif";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "tr" ) {
                                                                            $tone_text = "Yazım tonu: ilham verici";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "hi" ) {
                                                                                $tone_text = "लेखन स्वर: प्रेरणादायक";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "pl" ) {
                                                                                    $tone_text = "Ton pisania: inspirujący";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "uk" ) {
                                                                                        $tone_text = "Тон письма: надихаючий";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ar" ) {
                                                                                            $tone_text = "نغمة الكتابة: ملهمة";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                $tone_text = "Tonalitatea scrisului: inspirator";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                    $tone_text = "Tón psaní: inspirativní";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                        $tone_text = "Írás hangulata: inspiráló";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                            $tone_text = "Τόνος συγγραφής: εμπνευστικός";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                $tone_text = "Тон на писане: вдъхновяващ";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                    $tone_text = "Skrivton: inspirerande";
                                                                                                                } else {
                                                                                                                    $tone_text = "Writing tone: inspirational";
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    } else {
                        
                        if ( $qcld_writing_tone == "sarca" ) {
                            
                            if ( $qcld_language == "en" ) {
                                $tone_text = "Writing tone: sarcastic";
                            } else {
                                
                                if ( $qcld_language == "es" ) {
                                    $tone_text = "Tono de escritura: sarcástico";
                                } else {
                                    
                                    if ( $qcld_language == "fr" ) {
                                        $tone_text = "Ton d'écriture: sarcastique";
                                    } else {
                                        
                                        if ( $qcld_language == "de" ) {
                                            $tone_text = "Schreibton: sarkastisch";
                                        } else {
                                            
                                            if ( $qcld_language == "it" ) {
                                                $tone_text = "Tono di scrittura: sarcastico";
                                            } else {
                                                
                                                if ( $qcld_language == "pt" ) {
                                                    $tone_text = "Tom de escrita: sarcástico";
                                                } else {
                                                    
                                                    if ( $qcld_language == "nl" ) {
                                                        $tone_text = "Schrijftoon: sarcastisch";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "ru" ) {
                                                            $tone_text = "Тональность текста: саркастическая";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ja" ) {
                                                                $tone_text = "文章の雰囲気: 皮肉";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "zh" ) {
                                                                    $tone_text = "写作氛围: 讽刺";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ko" ) {
                                                                        $tone_text = "글의 분위기: 비꼬는";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "id" ) {
                                                                            $tone_text = "Tingkah laku menulis: sarkastis";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "tr" ) {
                                                                                $tone_text = "Yazım tonu: sarkastik";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "hi" ) {
                                                                                    $tone_text = "लेखन स्वर: व्यंग्यात्मक";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "pl" ) {
                                                                                        $tone_text = "Ton pisania: sarkastyczny";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "uk" ) {
                                                                                            $tone_text = "Тон письма: саркастичний";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                $tone_text = "نغمة الكتابة: ساخرة";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                    $tone_text = "Tonalitatea scrisului: sarkastic";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                        $tone_text = "Tón psaní: sarkastický";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                            $tone_text = "Írás hangulata: szarkasztikus";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                $tone_text = "Τόνος συγγραφής: σαρκαστικός";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                    $tone_text = "Тон на писане: саркастичен";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                        $tone_text = "Skrivton: sarkastisk";
                                                                                                                    } else {
                                                                                                                        $tone_text = "Writing tone: sarcastic";
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        } else {
                            
                            if ( $qcld_writing_tone == "informal" ) {
                                
                                if ( $qcld_language == "en" ) {
                                    $tone_text = "Writing tone: informal";
                                } else {
                                    
                                    if ( $qcld_language == "es" ) {
                                        $tone_text = "Tono de escritura: informal";
                                    } else {
                                        
                                        if ( $qcld_language == "fr" ) {
                                            $tone_text = "Ton d'écriture: informel";
                                        } else {
                                            
                                            if ( $qcld_language == "de" ) {
                                                $tone_text = "Schreibton: informell";
                                            } else {
                                                
                                                if ( $qcld_language == "it" ) {
                                                    $tone_text = "Tono di scrittura: informale";
                                                } else {
                                                    
                                                    if ( $qcld_language == "pt" ) {
                                                        $tone_text = "Tom de escrita: informal";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "nl" ) {
                                                            $tone_text = "Schrijftoon: informeel";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "ru" ) {
                                                                $tone_text = "Тональность текста: неформальная";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ja" ) {
                                                                    $tone_text = "文章の雰囲気: 非公式";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "zh" ) {
                                                                        $tone_text = "写作氛围: 非正式";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ko" ) {
                                                                            $tone_text = "글의 분위기: 비공식";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "id" ) {
                                                                                $tone_text = "Tingkah laku menulis: tidak resmi";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "tr" ) {
                                                                                    $tone_text = "Yazım tonu: resmi olmayan";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "hi" ) {
                                                                                        $tone_text = "लेखन स्वर: अनौपचारिक";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "pl" ) {
                                                                                            $tone_text = "Ton pisania: nieformalny";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                $tone_text = "Тон письма: неформальний";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                    $tone_text = "لهجة الكتابة: غير رسمية";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                        $tone_text = "Tonalitatea scrisului: neformal";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                            $tone_text = "Tón psaní: neformální";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                $tone_text = "Írás hangulata: nemformális";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                    $tone_text = "Τόνος συγγραφής: μη επίσημος";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                        $tone_text = "Тон на писане: неформален";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                            $tone_text = "Skrivton: informell";
                                                                                                                        } else {
                                                                                                                            $tone_text = "Writing tone: informal";
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            } else {
                                
                                if ( $qcld_writing_tone == "neutr" ) {
                                    
                                    if ( $qcld_language == "en" ) {
                                        $tone_text = "Writing tone: neutral";
                                    } else {
                                        
                                        if ( $qcld_language == "es" ) {
                                            $tone_text = "Tono de escritura: neutral";
                                        } else {
                                            
                                            if ( $qcld_language == "fr" ) {
                                                $tone_text = "Ton d'écriture: neutre";
                                            } else {
                                                
                                                if ( $qcld_language == "de" ) {
                                                    $tone_text = "Schreibton: neutral";
                                                } else {
                                                    
                                                    if ( $qcld_language == "it" ) {
                                                        $tone_text = "Tono di scrittura: neutrale";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "pt" ) {
                                                            $tone_text = "Tom de escrita: neutro";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "nl" ) {
                                                                $tone_text = "Schrijftoon: neutraal";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "ru" ) {
                                                                    $tone_text = "Тональность текста: нейтральная";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ja" ) {
                                                                        $tone_text = "文章の雰囲気: 中立";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "zh" ) {
                                                                            $tone_text = "写作氛围: 中性";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ko" ) {
                                                                                $tone_text = "글의 분위기: 중립";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "id" ) {
                                                                                    $tone_text = "Tingkah laku menulis: netral";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "tr" ) {
                                                                                        $tone_text = "Yazım tonu: nötr";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "hi" ) {
                                                                                            $tone_text = "राइटिंग टोन: न्यूट्रल";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                $tone_text = "Ton pisania: neutralny";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                    $tone_text = "Тон письма: нейтральний";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                        $tone_text = "نغمة الكتابة: محايدة";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                            $tone_text = "Tonalitatea scrisului: neutru";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                $tone_text = "Tón psaní: neutrální";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                    $tone_text = "Írás hangulata: semleges";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                        $tone_text = "Τόνος συγγραφής: ουδέτερος";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                            $tone_text = "Тон на писане: нейтрален";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                $tone_text = "Skrivton: neutral";
                                                                                                                            } else {
                                                                                                                                $tone_text = "Writing tone: neutral";
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                } else {
                                    
                                    if ( $qcld_writing_tone == "formal" ) {
                                        
                                        if ( $qcld_language == "en" ) {
                                            $tone_text = "Writing tone: formal";
                                        } else {
                                            
                                            if ( $qcld_language == "es" ) {
                                                $tone_text = "Tono de escritura: formal";
                                            } else {
                                                
                                                if ( $qcld_language == "fr" ) {
                                                    $tone_text = "Ton d'écriture: formel";
                                                } else {
                                                    
                                                    if ( $qcld_language == "de" ) {
                                                        $tone_text = "Schreibton: formell";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "it" ) {
                                                            $tone_text = "Tono di scrittura: formale";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "pt" ) {
                                                                $tone_text = "Tom de escrita: formal";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "nl" ) {
                                                                    $tone_text = "Schrijftoon: formeel";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "ru" ) {
                                                                        $tone_text = "Тональность текста: формальная";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ja" ) {
                                                                            $tone_text = "文章の雰囲気: 正式";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "zh" ) {
                                                                                $tone_text = "写作氛围: 正式";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ko" ) {
                                                                                    $tone_text = "글의 분위기: 공식";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "id" ) {
                                                                                        $tone_text = "Tingkah laku menulis: resmi";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "tr" ) {
                                                                                            $tone_text = "Yazım tonu: resmi";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                $tone_text = "लेखन स्वर: औपचारिक";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                    $tone_text = "Ton pisania: formalny";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                        $tone_text = "Тон письма: формальний";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                            $tone_text = "نغمة الكتابة: رسمية";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                $tone_text = "Tonalitatea scrisului: formal";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                    $tone_text = "Tón psaní: formální";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                        $tone_text = "Írás hangulata: hivatalos";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                            $tone_text = "Τόνος συγγραφής: επίσημος";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                $tone_text = "Тон на писане: формален";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                    $tone_text = "Skrivton: formell";
                                                                                                                                } else {
                                                                                                                                    $tone_text = "Writing tone: formal";
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    } else {
                                        
                                        if ( $qcld_writing_tone == "skept" ) {
                                            
                                            if ( $qcld_language == "en" ) {
                                                $tone_text = "Writing tone: skeptical";
                                            } else {
                                                
                                                if ( $qcld_language == "es" ) {
                                                    $tone_text = "Tono de escritura: escéptico";
                                                } else {
                                                    
                                                    if ( $qcld_language == "fr" ) {
                                                        $tone_text = "Ton d'écriture: sceptique";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "de" ) {
                                                            $tone_text = "Schreibton: skeptisch";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "it" ) {
                                                                $tone_text = "Tono di scrittura: scettico";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "pt" ) {
                                                                    $tone_text = "Tom de escrita: cético";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "nl" ) {
                                                                        $tone_text = "Schrijftoon: sceptisch";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "ru" ) {
                                                                            $tone_text = "Тональность текста: скептическая";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ja" ) {
                                                                                $tone_text = "文章の雰囲気: 思いやりのない";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "zh" ) {
                                                                                    $tone_text = "写作氛围: 怀疑";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ko" ) {
                                                                                        $tone_text = "글의 분위기: 의심";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "id" ) {
                                                                                            $tone_text = "Tingkah laku menulis: skeptis";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                $tone_text = "Yazım tonu: şüpheci";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                    $tone_text = "लेखन स्वर: संदेहवादी";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                        $tone_text = "Ton pisania: sceptyczny";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                            $tone_text = "Тон письма: скептичний";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                $tone_text = "لهجة الكتابة: متشكك";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                    $tone_text = "Tonalitatea scrisului: sceptic";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                                        $tone_text = "Tón psaní: skeptický";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                                            $tone_text = "Írás hangulata: kételyes";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                $tone_text = "Τόνος συγγραφής: αμφιβαλλόμενος";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                    $tone_text = "Тон на писане: скептичен";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                        $tone_text = "Skrivton: skeptisk";
                                                                                                                                    } else {
                                                                                                                                        $tone_text = "Writing tone: skeptical";
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        } else {
                                            
                                            if ( $qcld_writing_tone == "optim" ) {
                                                
                                                if ( $qcld_language == "en" ) {
                                                    $tone_text = "Writing tone: optimistic";
                                                } else {
                                                    
                                                    if ( $qcld_language == "es" ) {
                                                        $tone_text = "Tono de escritura: optimista";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "fr" ) {
                                                            $tone_text = "Ton d'écriture: optimiste";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "de" ) {
                                                                $tone_text = "Schreibton: optimistisch";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "it" ) {
                                                                    $tone_text = "Tono di scrittura: ottimista";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "pt" ) {
                                                                        $tone_text = "Tom de escrita: otimista";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "nl" ) {
                                                                            $tone_text = "Schrijftoon: optimistisch";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "ru" ) {
                                                                                $tone_text = "Тональность текста: оптимистичная";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ja" ) {
                                                                                    $tone_text = "文章の雰囲気: 楽観的";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "zh" ) {
                                                                                        $tone_text = "写作氛围: 乐观";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ko" ) {
                                                                                            $tone_text = "글의 분위기: 낙관적";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "id" ) {
                                                                                                $tone_text = "Tingkah laku menulis: optimis";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "tr" ) {
                                                                                                    $tone_text = "Yazım tonu: umutlu";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "hi" ) {
                                                                                                        $tone_text = "लेखन स्वर: उम्मीदवादी";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "pl" ) {
                                                                                                            $tone_text = "Ton pisania: optymistyczny";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                                $tone_text = "Тон письма: оптимістичний";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                                    $tone_text = "نغمة الكتابة: متفائلة";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                                        $tone_text = "Tonalitatea scrisului: optimist";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                            $tone_text = "Tón psaní: optimistický";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                                $tone_text = "Írás hangulata: optimista";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                                    $tone_text = "Τόνος συγγραφής: θετικός";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                                        $tone_text = "Тон на писане: оптимистичен";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                                            $tone_text = "Skrivton: optimistisk";
                                                                                                                                        } else {
                                                                                                                                            $tone_text = "Writing tone: optimistic";
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            } else {
                                                
                                                if ( $qcld_writing_tone == "worry" ) {
                                                    
                                                    if ( $qcld_language == "en" ) {
                                                        $tone_text = "Writing tone: worried";
                                                    } else {
                                                        
                                                        if ( $qcld_language == "es" ) {
                                                            $tone_text = "Tono de escritura: preocupado";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "fr" ) {
                                                                $tone_text = "Ton d'écriture: inquiet";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "de" ) {
                                                                    $tone_text = "Schreibton: besorgt";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "it" ) {
                                                                        $tone_text = "Tono di scrittura: preoccupato";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "pt" ) {
                                                                            $tone_text = "Tom de escrita: preocupado";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "nl" ) {
                                                                                $tone_text = "Schrijftoon: bezorgd";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "ru" ) {
                                                                                    $tone_text = "Тональность текста: беспокойная";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ja" ) {
                                                                                        $tone_text = "文章の雰囲気: 心配";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "zh" ) {
                                                                                            $tone_text = "写作氛围: 忧虑";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                $tone_text = "글의 분위기: 걱정";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "id" ) {
                                                                                                    $tone_text = "Tingkah laku menulis: khawatir";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "tr" ) {
                                                                                                        $tone_text = "Yazım tonu: endişeli";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "hi" ) {
                                                                                                            $tone_text = "लेखन स्वर: चिंतित";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                                $tone_text = "Ton pisania: zaniepokojony";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                                    $tone_text = "Тон письма: хвилюваний";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                                        $tone_text = "نغمة الكتابة: قلق";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                                            $tone_text = "Tonalitatea scrisului: îngrijorat";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                                $tone_text = "Tón psaní: obavam";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                                    $tone_text = "Írás hangulata: aggódó";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                                        $tone_text = "Τόνος συγγραφής: ανησυχημένος";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                                            $tone_text = "Тон на писане: притеснен";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                                $tone_text = "Skrivton: orolig";
                                                                                                                                            } else {
                                                                                                                                                $tone_text = "Writing tone: worried";
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                } else {
                                                    
                                                    if ( $qcld_writing_tone == "curio" ) {
                                                        
                                                        if ( $qcld_language == "en" ) {
                                                            $tone_text = "Writing tone: curious";
                                                        } else {
                                                            
                                                            if ( $qcld_language == "es" ) {
                                                                $tone_text = "Tono de escritura: curioso";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "fr" ) {
                                                                    $tone_text = "Ton d'écriture: curieux";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "de" ) {
                                                                        $tone_text = "Schreibton: neugierig";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "it" ) {
                                                                            $tone_text = "Tono di scrittura: curioso";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "pt" ) {
                                                                                $tone_text = "Tom de escrita: curioso";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "nl" ) {
                                                                                    $tone_text = "Schrijftoon: nieuwsgierig";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "ru" ) {
                                                                                        $tone_text = "Тональность текста: любопытная";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ja" ) {
                                                                                            $tone_text = "文章の雰囲気: 好奇心旺盛";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "zh" ) {
                                                                                                $tone_text = "写作氛围: 好奇心旺盛";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                    $tone_text = "글의 분위기: 호기심 많은";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "id" ) {
                                                                                                        $tone_text = "Tingkah laku menulis: penasaran";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "tr" ) {
                                                                                                            $tone_text = "Yazım tonu: meraklı";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                                $tone_text = "लेखन स्वर: उत्सुक";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                                    $tone_text = "Ton pisania: ciekawy";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                                        $tone_text = "Тон письма: цікавий";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                                            $tone_text = "نغمة الكتابة: فضولي";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                                $tone_text = "Tonalitatea scrisului: curios";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                                    $tone_text = "Tón psaní: zvědavý";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                        $tone_text = "Írás hangulata: kíváncsi";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                                            $tone_text = "Τόνος συγγραφής: απορετικός";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                                $tone_text = "Тон на писане: любопитен";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                                    $tone_text = "Skrivton: nyfiken";
                                                                                                                                                } else {
                                                                                                                                                    $tone_text = "Writing tone: curious";
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    } else {
                                                        
                                                        if ( $qcld_writing_tone == "surpr" ) {
                                                            
                                                            if ( $qcld_language == "en" ) {
                                                                $tone_text = "Writing tone: surprised";
                                                            } else {
                                                                
                                                                if ( $qcld_language == "es" ) {
                                                                    $tone_text = "Tono de escritura: sorprendido";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "fr" ) {
                                                                        $tone_text = "Ton d'écriture: surpris";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "de" ) {
                                                                            $tone_text = "Schreibton: überrascht";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "it" ) {
                                                                                $tone_text = "Tono di scrittura: sorpreso";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "pt" ) {
                                                                                    $tone_text = "Tom de escrita: surpreso";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "nl" ) {
                                                                                        $tone_text = "Schrijftoon: verrast";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "ru" ) {
                                                                                            $tone_text = "Тональность текста: удивлённая";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ja" ) {
                                                                                                $tone_text = "文章の雰囲気: 驚いた";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "zh" ) {
                                                                                                    $tone_text = "写作氛围: 惊讶";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ko" ) {
                                                                                                        $tone_text = "글의 분위기: 놀란";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "id" ) {
                                                                                                            $tone_text = "Tingkah laku menulis: terkejut";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "tr" ) {
                                                                                                                $tone_text = "Yazım tonu: şaşırmış";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "hi" ) {
                                                                                                                    $tone_text = "लेखन स्वर: अच्छा नहीं लगा";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "pl" ) {
                                                                                                                        $tone_text = "Ton pisania: zaskoczony";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "uk" ) {
                                                                                                                            $tone_text = "Тон письма: здивований";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "ar" ) {
                                                                                                                                $tone_text = "نغمة الكتابة: مندهش";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "ro" ) {
                                                                                                                                    $tone_text = "Tonalitatea scrisului: surprins";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "cs" ) {
                                                                                                                                        $tone_text = "Tón psaní: překvapený";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "hu" ) {
                                                                                                                                            $tone_text = "Írás hangulata: meglepett";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "el" ) {
                                                                                                                                                $tone_text = "Τόνος συγγραφής: έκπληκτος";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "bg" ) {
                                                                                                                                                    $tone_text = "Тон на писане: изненадан";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "sv" ) {
                                                                                                                                                        $tone_text = "Skrivton: förvånad";
                                                                                                                                                    } else {
                                                                                                                                                        $tone_text = "Writing tone: surprised";
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        } else {
                                                            
                                                            if ( $qcld_writing_tone == "encou" ) {
                                                                
                                                                if ( $qcld_language == "en" ) {
                                                                    $tone_text = "Writing tone: encouraging";
                                                                } else {
                                                                    
                                                                    if ( $qcld_language == "es" ) {
                                                                        $tone_text = "Tono de escritura: alentador";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "fr" ) {
                                                                            $tone_text = "Ton d'écriture: encourageant";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "de" ) {
                                                                                $tone_text = "Schreibton: ermutigend";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "it" ) {
                                                                                    $tone_text = "Tono di scrittura: incoraggiante";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "pt" ) {
                                                                                        $tone_text = "Tom de escrita: encorajador";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "nl" ) {
                                                                                            $tone_text = "Schrijftoon: aanmoedigend";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "ru" ) {
                                                                                                $tone_text = "Тональность текста: поддерживающая";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ja" ) {
                                                                                                    $tone_text = "文章の雰囲気: 勇気づける";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "zh" ) {
                                                                                                        $tone_text = "写作氛围: 鼓励";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ko" ) {
                                                                                                            $tone_text = "글의 분위기: 격려하는";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "id" ) {
                                                                                                                $tone_text = "Tingkah laku menulis: menggalakkan";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "tr" ) {
                                                                                                                    $tone_text = "Yazım tonu: cesaretlendirici";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "hi" ) {
                                                                                                                        $tone_text = "लेखन स्वर: प्रेरणादायक";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "pl" ) {
                                                                                                                            $tone_text = "Ton pisania: zachęcający";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "uk" ) {
                                                                                                                                $tone_text = "Тон письма: підтримуючий";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "ar" ) {
                                                                                                                                    $tone_text = "نغمة الكتابة: مشجعة";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "ro" ) {
                                                                                                                                        $tone_text = "Tonalitatea scrisului: încurajator";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "cs" ) {
                                                                                                                                            $tone_text = "Tón psaní: povzbuzující";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "hu" ) {
                                                                                                                                                $tone_text = "Írás hangulata: bátorító";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "el" ) {
                                                                                                                                                    $tone_text = "Τόνος συγγραφής: ενθαρρυντικός";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "bg" ) {
                                                                                                                                                        $tone_text = "Тон на писане: подкрепяващ";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "sv" ) {
                                                                                                                                                            $tone_text = "Skrivton: uppmuntrande";
                                                                                                                                                        } else {
                                                                                                                                                            $tone_text = "Writing tone: encouraging";
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            } else {
                                                                
                                                                if ( $qcld_writing_tone == "disap" ) {
                                                                    
                                                                    if ( $qcld_language == "en" ) {
                                                                        $tone_text = "Writing tone: disappointed";
                                                                    } else {
                                                                        
                                                                        if ( $qcld_language == "es" ) {
                                                                            $tone_text = "Tono de escritura: decepcionado";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "fr" ) {
                                                                                $tone_text = "Ton d'écriture: déçu";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "de" ) {
                                                                                    $tone_text = "Schreibton: enttäuscht";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "it" ) {
                                                                                        $tone_text = "Tono di scrittura: deluso";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "pt" ) {
                                                                                            $tone_text = "Tom de escrita: desapontado";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "nl" ) {
                                                                                                $tone_text = "Schrijftoon: teleurgesteld";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "ru" ) {
                                                                                                    $tone_text = "Тональность текста: расстроенная";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ja" ) {
                                                                                                        $tone_text = "文章の雰囲気: 気の毒";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "zh" ) {
                                                                                                            $tone_text = "写作氛围: 失望";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "ko" ) {
                                                                                                                $tone_text = "글의 분위기: 실망한";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "id" ) {
                                                                                                                    $tone_text = "Tingkah laku menulis: kecewa";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "tr" ) {
                                                                                                                        $tone_text = "Yazım tonu: hayal kırıklığına uğramış";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "hi" ) {
                                                                                                                            $tone_text = "लेखन स्वर: निराशा";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "pl" ) {
                                                                                                                                $tone_text = "Ton pisania: rozczarowany";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "uk" ) {
                                                                                                                                    $tone_text = "Тон письма: розчарований";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "ar" ) {
                                                                                                                                        $tone_text = "لهجة الكتابة: محبط";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "ro" ) {
                                                                                                                                            $tone_text = "Tonalitatea scrisului: dezamăgit";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "cs" ) {
                                                                                                                                                $tone_text = "Tón psaní: zklamaný";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "hu" ) {
                                                                                                                                                    $tone_text = "Írás hangulata: csalódott";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "el" ) {
                                                                                                                                                        $tone_text = "Τόνος συγγραφής: απογοητευμένος";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "bg" ) {
                                                                                                                                                            $tone_text = "Тон на писане: разочарован";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "sv" ) {
                                                                                                                                                                $tone_text = "Skrivton: besviken";
                                                                                                                                                            } else {
                                                                                                                                                                $tone_text = "Writing tone: disappointed";
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                } else {
                                                                    
                                                                    if ( $qcld_writing_tone == "profe" ) {
                                                                        
                                                                        if ( $qcld_language == "en" ) {
                                                                            $tone_text = "Writing tone: professional";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "es" ) {
                                                                                $tone_text = "Tono de escritura: profesional";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "fr" ) {
                                                                                    $tone_text = "Ton d'écriture: professionnel";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "de" ) {
                                                                                        $tone_text = "Schreibton: professionell";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "it" ) {
                                                                                            $tone_text = "Tono di scrittura: professionale";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pt" ) {
                                                                                                $tone_text = "Tom de escrita: profissional";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "nl" ) {
                                                                                                    $tone_text = "Schrijftoon: professioneel";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ru" ) {
                                                                                                        $tone_text = "Тональность текста: профессиональная";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ja" ) {
                                                                                                            $tone_text = "文章の雰囲気: プロ";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "zh" ) {
                                                                                                                $tone_text = "写作氛围: 专业";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                                    $tone_text = "글의 분위기: 전문가";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "id" ) {
                                                                                                                        $tone_text = "Tingkah laku menulis: profesional";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "tr" ) {
                                                                                                                            $tone_text = "Yazım tonu: profesyonel";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                                                $tone_text = "लेखन स्वर: प्रोफेशनल";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                                                    $tone_text = "Ton pisania: profesjonalny";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                                                        $tone_text = "Тон письма: професійний";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                                                            $tone_text = "لهجة الكتابة: مهني";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                                                $tone_text = "Tonalitatea scrisului: profesional";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                                                    $tone_text = "Tón psaní: profesionální";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                                        $tone_text = "Írás hangulata: szakmai";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                                                            $tone_text = "Τόνος συγγραφής: επαγγελματικός";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                                                $tone_text = "Тон на писане: професионален";
                                                                                                                                                            } else {
                                                                                                                                                                
                                                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                                                    $tone_text = "Skrivton: professionell";
                                                                                                                                                                } else {
                                                                                                                                                                    $tone_text = "Writing tone: professional";
                                                                                                                                                                }
                                                                                                                                                            
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    } else {
                                                                        // formal
                                                                        
                                                                        if ( $qcld_language == "en" ) {
                                                                            $tone_text = "Writing tone: formal";
                                                                        } else {
                                                                            
                                                                            if ( $qcld_language == "es" ) {
                                                                                $tone_text = "Tono de escritura: formal";
                                                                            } else {
                                                                                
                                                                                if ( $qcld_language == "fr" ) {
                                                                                    $tone_text = "Ton d'écriture: formel";
                                                                                } else {
                                                                                    
                                                                                    if ( $qcld_language == "de" ) {
                                                                                        $tone_text = "Schreibton: formell";
                                                                                    } else {
                                                                                        
                                                                                        if ( $qcld_language == "it" ) {
                                                                                            $tone_text = "Tono di scrittura: formale";
                                                                                        } else {
                                                                                            
                                                                                            if ( $qcld_language == "pt" ) {
                                                                                                $tone_text = "Tom de escrita: formal";
                                                                                            } else {
                                                                                                
                                                                                                if ( $qcld_language == "nl" ) {
                                                                                                    $tone_text = "Schrijftoon: formeel";
                                                                                                } else {
                                                                                                    
                                                                                                    if ( $qcld_language == "ru" ) {
                                                                                                        $tone_text = "Тональность текста: формальная";
                                                                                                    } else {
                                                                                                        
                                                                                                        if ( $qcld_language == "ja" ) {
                                                                                                            $tone_text = "文章の雰囲気: 正式";
                                                                                                        } else {
                                                                                                            
                                                                                                            if ( $qcld_language == "zh" ) {
                                                                                                                $tone_text = "写作氛围: 正式";
                                                                                                            } else {
                                                                                                                
                                                                                                                if ( $qcld_language == "ko" ) {
                                                                                                                    $tone_text = "글의 분위기: 공식";
                                                                                                                } else {
                                                                                                                    
                                                                                                                    if ( $qcld_language == "id" ) {
                                                                                                                        $tone_text = "Tingkah laku menulis: resmi";
                                                                                                                    } else {
                                                                                                                        
                                                                                                                        if ( $qcld_language == "tr" ) {
                                                                                                                            $tone_text = "Yazım tonu: resmi";
                                                                                                                        } else {
                                                                                                                            
                                                                                                                            if ( $qcld_language == "hi" ) {
                                                                                                                                $tone_text = "लेखन स्वर: औपचारिक";
                                                                                                                            } else {
                                                                                                                                
                                                                                                                                if ( $qcld_language == "pl" ) {
                                                                                                                                    $tone_text = "Ton pisania: formalny";
                                                                                                                                } else {
                                                                                                                                    
                                                                                                                                    if ( $qcld_language == "uk" ) {
                                                                                                                                        $tone_text = "Тон письма: формальний";
                                                                                                                                    } else {
                                                                                                                                        
                                                                                                                                        if ( $qcld_language == "ar" ) {
                                                                                                                                            $tone_text = "نغمة الكتابة: رسمية";
                                                                                                                                        } else {
                                                                                                                                            
                                                                                                                                            if ( $qcld_language == "ro" ) {
                                                                                                                                                $tone_text = "Tonalitatea scrisului: formal";
                                                                                                                                            } else {
                                                                                                                                                
                                                                                                                                                if ( $qcld_language == "cs" ) {
                                                                                                                                                    $tone_text = "Tón psaní: formální";
                                                                                                                                                } else {
                                                                                                                                                    
                                                                                                                                                    if ( $qcld_language == "hu" ) {
                                                                                                                                                        $tone_text = "Írás hangulata: hivatalos";
                                                                                                                                                    } else {
                                                                                                                                                        
                                                                                                                                                        if ( $qcld_language == "el" ) {
                                                                                                                                                            $tone_text = "Τόνος συγγραφής: επίσημος";
                                                                                                                                                        } else {
                                                                                                                                                            
                                                                                                                                                            if ( $qcld_language == "bg" ) {
                                                                                                                                                                $tone_text = "Тон на писане: формален";
                                                                                                                                                            } else {
                                                                                                                                                                
                                                                                                                                                                if ( $qcld_language == "sv" ) {
                                                                                                                                                                    $tone_text = "Skrivton: formell";
                                                                                                                                                                } else {
                                                                                                                                                                    $tone_text = "Writing tone: formal";
                                                                                                                                                                }
                                                                                                                                                            
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        }
                                                                                                                                                    
                                                                                                                                                    }
                                                                                                                                                
                                                                                                                                                }
                                                                                                                                            
                                                                                                                                            }
                                                                                                                                        
                                                                                                                                        }
                                                                                                                                    
                                                                                                                                    }
                                                                                                                                
                                                                                                                                }
                                                                                                                            
                                                                                                                            }
                                                                                                                        
                                                                                                                        }
                                                                                                                    
                                                                                                                    }
                                                                                                                
                                                                                                                }
                                                                                                            
                                                                                                            }
                                                                                                        
                                                                                                        }
                                                                                                    
                                                                                                    }
                                                                                                
                                                                                                }
                                                                                            
                                                                                            }
                                                                                        
                                                                                        }
                                                                                    
                                                                                    }
                                                                                
                                                                                }
                                                                            
                                                                            }
                                                                        
                                                                        }
                                                                    
                                                                    }
                                                                
                                                                }
                                                            
                                                            }
                                                        
                                                        }
                                                    
                                                    }
                                                
                                                }
                                            
                                            }
                                        
                                        }
                                    
                                    }
                                
                                }
                            
                            }
                        
                        }
                    
                    }
                
                }
            
            }
        
        }

	return $tone_text;
}



add_filter('qcld_ai_article_heading_tag', 'qcld_ai_article_heading_tag_callback', 10, 8 );
if ( ! function_exists( 'qcld_ai_article_heading_tag_callback' ) ) {
function qcld_ai_article_heading_tag_callback( $allresults, $mylist, $myprompt, $qcld_article_heading_tag, $style_text, $tone_text, $avoid_text, $qcld_article_label_word_to_avoid ){
    
      
    $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
    $ai_engines                         = get_option('qcld_seohelp_ai_engines');
    $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
    $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty');
    $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty');

    if( isset($mylist) && !empty($mylist) ) {
        
        foreach ( $mylist as $key => $value ) {
            
            if(!empty($value)){
                $withstyle = $value . '. ' . $style_text . ', ' . $tone_text . '.';
                // if avoid is not empty add it to the prompt
                if ( !empty( $qcld_article_label_word_to_avoid ) ) {
                    $withstyle = $value . '. ' . $style_text . ', ' . $tone_text . ', ' . $avoid_text . '.';
                }

                $complete  = apply_filters('qcld_seohelp_ai_content_settings_processing_data_function', $myprompt );

                // trim the text
                $complete = !empty($complete) ? trim( $complete ) : '';
                $value = str_replace( '\\/', '', $value );
                $value = str_replace( '\\', '', $value );
                // trim value
                $value = trim( $value );
                // we will add h tag if the user wants to

                if ( $qcld_article_heading_tag == "h1" ) {
                    $result = "\n"."<h1>" . $value . "</h1>" ."\n". $complete;
                } elseif ( $qcld_article_heading_tag == "h2" ) {
                    $result = "\n"."<h2>" . $value . "</h2>" ."\n". $complete;
                } elseif ( $qcld_article_heading_tag == "h3" ) {
                    $result = "\n"."<h3>" . $value . "</h3>" ."\n". $complete;
                } elseif ( $qcld_article_heading_tag == "h4" ) {
                    $result = "\n"."<h4>" . $value . "</h4>" ."\n". $complete;
                } elseif ( $qcld_article_heading_tag == "h5" ) {
                    $result = "\n"."<h5>" . $value . "</h5>" ."\n". $complete;
                } elseif ( $qcld_article_heading_tag == "h6" ) {
                    $result = "\n"."<h6>" . $value . "</h6>" ."\n". $complete;
                } else {
                    $result = "\n"."<h2>" . $value . "</h2>" ."\n". $complete;
                }

                $result = preg_replace('/[\*]+/', '', $result);


                $Parsedown = new Parsedown();
                
                $allresults = $allresults . $Parsedown->text($result);

            }
            
        }
    }


    return $allresults;
}
}

add_filter('qcld_ai_article_heading_intro', 'qcld_ai_article_heading_intro_callback', 10, 3 );
if ( ! function_exists( 'qcld_ai_article_heading_intro_callback' ) ) {
function qcld_ai_article_heading_intro_callback( $allresults, $myintro, $introduction ){
    
    $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
    $ai_engines                         = get_option('qcld_seohelp_ai_engines');
    $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
    $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty');
    $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty');

    $completeintro  = apply_filters('qcld_seohelp_ai_content_settings_processing_data_function', $myintro );
    // trim the text
    $completeintro = !empty( $completeintro ) ? trim( $completeintro ) : '';
    // add <h1>Introuction</h1> to the beginning of the text
    $completeintro = "\n"."<h1>" . $introduction . "</h1>" ."\n". $completeintro;
    // add intro to the beginning of the text
    $allresults = $completeintro . $allresults;

    return $allresults;
}
}

add_filter('qcld_ai_article_heading_faq', 'qcld_ai_article_heading_faq_callback', 10, 3 );
if ( ! function_exists( 'qcld_ai_article_heading_faq_callback' ) ) {
function qcld_ai_article_heading_faq_callback( $allresults, $faq_text, $faq_heading ){
    
    $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
    $ai_engines                         = get_option('qcld_seohelp_ai_engines');
    $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
    $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty');
    $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty');

    $completefaq  = apply_filters('qcld_seohelp_ai_content_settings_processing_data_function', $faq_text );
    // trim the text
    $completefaq = !empty( $completefaq ) ? trim( $completefaq ) : '';
    // add <h1>FAQ</h1> to the beginning of the text
    $completefaq = "\n"."<h2>" . $faq_heading . "</h2>" ."\n". $completefaq;
    // add intro to the beginning of the text
    $allresults = $allresults . $completefaq;

    return $allresults;

}
}

add_filter('qcld_ai_article_heading_conclusion', 'qcld_ai_article_heading_conclusion_callback', 10, 3 );
if ( ! function_exists( 'qcld_ai_article_heading_conclusion_callback' ) ) {
function qcld_ai_article_heading_conclusion_callback( $allresults, $myconclusion, $conclusion ){
    
    $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
    $ai_engines                         = get_option('qcld_seohelp_ai_engines');
    $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
    $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty');
    $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty');


    $completeconclusion  = apply_filters('qcld_seohelp_ai_content_settings_processing_data_function', $myconclusion );
    // trim the text
    $completeconclusion = !empty( $completeconclusion ) ? trim( $completeconclusion ) : '';
    // add <h1>Conclusion</h1> to the beginning of the text
    $completeconclusion = "\n"."<h1>" . $conclusion . "</h1>" ."\n". $completeconclusion;
    // add intro to the beginning of the text
    $allresults = $allresults . $completeconclusion;


    return $allresults;
    
}
}

add_filter('qcld_ai_article_heading_tagline', 'qcld_ai_article_heading_tagline_callback', 10, 3 );
if ( ! function_exists( 'qcld_ai_article_heading_tagline_callback' ) ) {
function qcld_ai_article_heading_tagline_callback( $allresults, $mytagline, $conclusion ){
    
    $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
    $ai_engines                         = get_option('qcld_seohelp_ai_engines');
    $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
    $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty');
    $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty');

    $completetagline  = apply_filters('qcld_seohelp_ai_content_settings_processing_data_function', $mytagline );


    // trim the text
    $completetagline = !empty( $completetagline ) ? trim( $completetagline ) : '';
    // add <p> to the beginning of the text
    $completetagline = "\n"."<p>" . $completetagline . "</p>"."\n";
    // add intro to the beginning of the text
    $completetagline = preg_replace('/[\*]+/', '', $completetagline);
    $allresults = $completetagline . $allresults;


    return $allresults;
    
}
}

add_filter('qcld_seohelp_ai_article_heading_img', 'qcld_seohelp_ai_article_heading_img_callback', 10, 2 );
if ( ! function_exists( 'qcld_seohelp_ai_article_heading_img_callback' ) ) {
    function qcld_seohelp_ai_article_heading_img_callback( $qcld_article_text, $img_size ){

        $provider = get_option('qcld_ai_settings_open_ai');
        $imgresult = '';

        if ($provider == 'openai' || empty($provider)) {
            
                
            $api_key = get_option('qcld_seohelp_api_key');

            if (empty($api_key)) {
                $blueprint['error'] = 'OpenAI API key is missing.';
                return $blueprint;
            }

            $request_body = [
                "prompt"            => $qcld_article_text,
                "model"             => 'gpt-image-1',
                "n"                 => 1,
                "size"              => '1024x1024',
                "quality"           => 'medium' // Note: GPT Image accepts "low", "medium", or "high" instead of "hd"
            ];
            $url = "https://api.openai.com/v1/images/generations";

            // Configure the arguments for the wp_remote_post request
            $args = array(
                'body'    => json_encode( $request_body ),
                'headers' => array(
                    'Content-Type'  => 'application/json',
                    'Authorization' => 'Bearer ' . $api_key, 
                ),
                'method'  => 'POST',
                'timeout' => 60,
            );

            // Execute the request using the WordPress HTTP API
            $response = wp_remote_post( $url, $args );
            
            if (is_wp_error($response)) {
                $blueprint['error'] = $response->get_error_message();
                return $blueprint;
            }

            $response_code  = wp_remote_retrieve_response_code($response);
            $response_body  = wp_remote_retrieve_body($response);
            $data           = json_decode($response_body, true);


            // Fix 2: Handle OpenAI API Specific errors (e.g., bad API key, invalid size)
            if ( $response_code !== 200 ) {
                if ( isset( $data['error']['message'] ) ) {
                    $blueprint['error'] = 'OpenAI Error: ' . $data['error']['message'];
                } else {
                    $blueprint['error'] = 'API Request failed with status code: ' . $response_code;
                }
                return $blueprint;
            }

            // Fix 3: Handle native gpt-image base64 output
            if ( isset( $data['data'][0]['b64_json'] ) ) {
                $base64_image_data = $data['data'][0]['b64_json'];
                
                // Reconstruct a functional inline image URI for testing
                $imgresult = 'data:image/png;base64,' . $base64_image_data;
            } else {
                // Fallback for older legacy endpoints
                $imgresult = isset( $data['data'][0]['url'] ) ? $data['data'][0]['url'] : "not found";
                $api_error = isset($data['error']['message']) ? $data['error']['message'] : '';
                if (empty($api_error)) {
                    $api_error = 'HTTP ' . $response_code . ': ' . wp_trim_words($response_body, 30);
                }
                $blueprint['error'] = 'Failed to retrieve image URL from OpenAI. Details: ' . $api_error;
                return $blueprint;
            }
        } elseif ($provider == 'openrouter') {
            $api_key = get_option('qcld_seohelp_openrouter_api_key');
            $model = 'google/gemini-2.5-flash-image'; 
            $image_prompt = "Generate an illustration or image representing the following text: " . $qcld_article_text;
            $body = array(
                'model' => $model,
                'messages' => array(
                    array('role' => 'user', 'content' => $image_prompt)
                ),
                'modalities' => array('image')
            );
            $response = wp_remote_post('https://openrouter.ai/api/v1/chat/completions', array(
                'headers'   => array(
                    'Authorization' => 'Bearer ' . $api_key, 
                    'Content-Type' => 'application/json', 
                    'HTTP-Referer' => home_url(), 
                    'X-Title' => 'Simple Link Directory'
                ),
                'body'      => json_encode($body),
                'timeout'   => 60
            ));
            if (!is_wp_error($response)) {
                $response_body = wp_remote_retrieve_body($response);
                $data = json_decode($response_body, true);
                if (isset($data['choices'][0]['message']['images'][0]['image_url']['url'])) {
                    $imgresult = $data['choices'][0]['message']['images'][0]['image_url']['url'];
                } elseif (isset($data['choices'][0]['message']['content'])) {
                    $content = $data['choices'][0]['message']['content'];
                    if (preg_match('/(https?:\/\/[^\s\)]+)/', $content, $matches) && !empty($matches[1])) {
                        $imgresult = $matches[1];
                    } elseif (preg_match('/(data:image\/[^"\')\s>]+)/', $content, $matches) && !empty($matches[1])) {
                        $imgresult = $matches[1];
                    }
                }
            }
        } elseif ($provider == 'gemini') {
            $api_key = get_option('qcld_gemini_api_key');
            $request_body = array(
                "contents" => array(
                    array(
                        "parts" => array(
                            array("text" => $qcld_article_text)
                        )
                    )
                ),
                "generationConfig" => array(
                    "responseModalities" => array("IMAGE")
                )
            );
            $url = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent?key=' . $api_key;
            $args = array(
                'body'    => json_encode( $request_body ),
                'headers' => array('Content-Type' => 'application/json'),
                'method'  => 'POST',
                'timeout' => 45,
            );
            $response = wp_remote_post( $url, $args );
            if (!is_wp_error($response)) {
                $response_code = wp_remote_retrieve_response_code($response);
                if ($response_code === 200) {
                    $response_body = wp_remote_retrieve_body($response);
                    $data = json_decode($response_body, true);
                    if (isset($data['candidates'][0]['content']['parts'][0]['inlineData']['data'])) {
                        $base64_image = $data['candidates'][0]['content']['parts'][0]['inlineData']['data'];
                        $imgresult = 'data:image/jpeg;base64,' . $base64_image;
                    }
                }
            }
        }

        
        if( !empty($imgresult) ) {
            $image_data = '';
            $imagetype  = 'jpeg';

            if (strpos($imgresult, 'data:image') === 0) {
                $base64_parts = explode(',', $imgresult);
                if (isset($base64_parts[1])) {
                    $image_data = base64_decode(trim($base64_parts[1]));
                }
                if (preg_match('/data:image\/([a-zA-Z0-9]+);/', $imgresult, $matches)) {
                    $imagetype = $matches[1];
                }
            } else {
                $img_response = wp_remote_get($imgresult, array('timeout' => 60));
                if (!is_wp_error($img_response)) {
                    $image_data = wp_remote_retrieve_body($img_response);
                    $content_type = wp_remote_retrieve_header($img_response, 'content-type');
                    if (!empty($content_type)) {
                        $array = explode('/', $content_type);
                        if (isset($array[1])) {
                            $imagetype = $array[1];
                        }
                    } else {
                        $img_info = @getimagesize($imgresult);
                        if ($img_info && isset($img_info['mime'])) {
                            $array = explode('/', $img_info['mime']);
                            $imagetype = end($array);
                        }
                    }
                }
            }

            if (!empty($image_data)) {
                $uniq_name          = preg_replace( '%\s*[-_\s]+\s*%', ' ',  $qcld_article_text );
                $uniq_name          = str_replace( ' ', '-',  $uniq_name );
                $uniq_name          = strtolower( $uniq_name );
                $uniq_name          = preg_replace('/[^a-zA-Z0-9_ -]/s', '',$uniq_name);
                $filename           = $uniq_name .'-'. uniqid() . '.' . $imagetype;

                $uploaddir          = wp_upload_dir();
                $target_file_name   = $uploaddir['path'] . '/' . $filename;

                $savefile = fopen($target_file_name, 'w');
                fwrite($savefile, $image_data);
                fclose($savefile);

                $image_title   = ucwords( str_replace('-', ' ', $uniq_name) );

                $attachment_caption = esc_attr( $image_title );

                $wp_filetype = wp_check_filetype(basename($target_file_name), null);
                $attachment  = array(
                    'guid'              => $uploaddir['url'] . '/' . basename($target_file_name),
                    'post_mime_type'    => $wp_filetype['type'],
                    'post_title'        => $image_title,
                    'post_status'       => 'inherit'
                );
                $post_id     = isset($_REQUEST['post_id']) ? absint($_REQUEST['post_id']): '';
                $attach_id   = wp_insert_attachment($attachment, $target_file_name, $post_id);
                
                if ($attach_id != 0) {
                    if(!function_exists('wp_generate_attachment_metadata')){
                        require_once( ABSPATH . 'wp-admin/includes/image.php' );
                    }
                    $attach_data = wp_generate_attachment_metadata($attach_id, $target_file_name);
                    wp_update_attachment_metadata($attach_id, $attach_data);

                    $image_data_post                 = array();
                    $image_data_post['ID']           = $attach_id;
                    $image_data_post['post_excerpt'] = $attachment_caption;
                    wp_update_post($image_data_post);

                    $parsed = wp_get_attachment_image_src( $attach_id, 'full' )[0];

                    if(!empty($parsed)){
                        $attach_id = $parsed;
                    }
                    
                    $imgresult = "\n"."<img src='" . $attach_id . "' alt='" . $qcld_article_text . "' />"."\n";
                } else {
                    $imgresult = '';
                }
            } else {
                $imgresult = '';
            }
        } else {
            $imgresult = '';
        }

        return $imgresult;
        
    }
}



add_filter('qcld_seohelp_ai_content_settings_processing_data_function', 'qcld_seohelp_ai_content_settings_processing_data_function_callback', 10, 1 );
if ( ! function_exists( 'qcld_seohelp_ai_content_settings_processing_data_function_callback' ) ) {
    function qcld_seohelp_ai_content_settings_processing_data_function_callback( $myprompt ){
        
          
        $OPENAI_API_KEY                     = get_option('qcld_seohelp_api_key');
        $ai_engines                         = get_option('qcld_seohelp_ai_engines');
        $temperature                        = get_option('qcld_seohelp_ai_temperature') ? get_option('qcld_seohelp_ai_temperature') : 0;
        $ppenalty                           = get_option('qcld_seohelp_ai_ppenalty') ? get_option('qcld_seohelp_ai_ppenalty') : 0;
        $fpenalty                           = get_option('qcld_seohelp_ai_fpenalty') ? get_option('qcld_seohelp_ai_fpenalty') : 0;

       
        $complete = '';
        $gptkeyword = [];
            
        $qcld_ai_settings_open_ai = get_option('qcld_ai_settings_open_ai');

        if ( !empty($qcld_ai_settings_open_ai) && $qcld_ai_settings_open_ai == 'gemini' ) {

            $gemini_api_key     = get_option('qcld_gemini_api_key');
            $gemini_model       = get_option('qcld_gemini_model');
            $gemini_version     = get_option('qcld_gemini_api_version');

            $url = "https://generativelanguage.googleapis.com/{$gemini_version}/models/{$gemini_model}:generateContent?key={$gemini_api_key}";

            $generation_config = array();

            if( null !== get_option('qcld_gemini_ai_temperature') && get_option('qcld_gemini_ai_temperature') != "" ){
                $generation_config["temperature"] = (float) esc_attr( get_option( 'qcld_gemini_ai_temperature' ) );
            }

            if( null !== get_option('qcld_gemini_ai_top_p') && get_option('qcld_gemini_ai_top_p') != "" ){
                $generation_config["top_p"] = (float) esc_attr( get_option( 'qcld_gemini_ai_top_p' ) );
            }

            if( null !== get_option('qcld_gemini_ai_top_k') && get_option('qcld_gemini_ai_top_k') != "" ){
                $generation_config["top_k"] = (float) esc_attr( get_option( 'qcld_gemini_ai_top_k' ) );
            }

            //return $generation_config;

            // Define the data structure as expected by the Gemini API
            $request_body = array(
                "contents" => array(
                    array(
                        "role" => "user",
                        "parts" => array(
                            array(
                                "text" => $myprompt // Assuming $myprompt is defined
                            )
                        )
                    )
                ),
                "generation_config" => $generation_config, // Assuming $generation_config is defined
            );

            // Configure the arguments for the wp_remote_post request
            $args = array(
                'body'    => json_encode( $request_body ), // The data payload encoded as JSON
                'headers' => array(
                    'Content-Type' => 'application/json',
                    // If your API uses a different auth method (e.g., Bearer token in header), add it here
                    // 'Authorization' => 'Bearer ' . $API_KEY, 
                ),
                'method'  => 'POST',
                'timeout' => 45, // Set a reasonable timeout
            );

            // Execute the request using the WordPress HTTP API
            $response = wp_remote_post( $url, $args );

            // Initialize the result variable
            $result_data = '';

            // Check for a transport error (network issue, cURL failure)
            if ( is_wp_error( $response ) ) {
                $error_message = $response->get_error_message();
                error_log( "Gemini API Request Transport Error: $error_message" ); 
                
                return esc_html( 'A network error occurred: ' . $error_message );
                wp_die();
            } else {
                // Request was made successfully. Decode the JSON body.
                $body = wp_remote_retrieve_body( $response );
                $returnedData = json_decode( $body );

                // Check the decoded response for API-specific errors (e.g., invalid input, rate limits)
                if ( isset( $returnedData->error ) && !empty( $returnedData->error ) ) {
                    $api_error_message = isset( $returnedData->error->message ) ? $returnedData->error->message : 'Unknown API Error';
                    
                    // Output the error message safely
                    return esc_html( $api_error_message );
                    wp_die();
                }
                
                // Extract the final text result if everything is successful
                $result_data = isset( $returnedData->candidates[0]->content->parts[0]->text ) ? $returnedData->candidates[0]->content->parts[0]->text : '';
                
            }
            $complete = preg_replace('/[\*]+/', '', $result_data);
            

        }else if( !empty($qcld_ai_settings_open_ai) && $qcld_ai_settings_open_ai == 'openrouter' ){
            
            $openrouter_api_key = get_option('qcld_seohelp_openrouter_api_key');
            $openrouter_model = get_option('qcld_seohelp_openrouter_model', 'google/gemini-2.5-flash');
            $openrouter_temperature = get_option('qcld_seohelp_openrouter_temperature') ? get_option('qcld_seohelp_openrouter_temperature') : 1;

            $post_fields = array(
                "model"         => $openrouter_model,
                "messages"      => array(
                    array(
                        "role" => "user",
                        "content" => $myprompt 
                    )
                ),
                "temperature"   => ( float )$openrouter_temperature
            );

            $url = 'https://openrouter.ai/api/v1/chat/completions';
            $args = array(
                'method'  => 'POST', 
                'headers' => array(
                    'Content-Type'  => 'application/json',
                    'Authorization' => 'Bearer ' . $openrouter_api_key,
                    'HTTP-Referer'  => home_url(),
                    'X-Title'       => get_bloginfo('name'),
                ),
                'body'    => json_encode($post_fields),
                'timeout' => 45 // Adjust timeout as needed
            );

            $response = wp_remote_post( $url, $args );

            if ( is_wp_error( $response ) ) {
                $error_message = $response->get_error_message();
                error_log( "OpenRouter API Request Failed: $error_message" ); 
                return esc_html( 'An API error occurred. Please try again later.', 'seo-help' );
                wp_die();
            } else {
                $body_json = wp_remote_retrieve_body( $response );
                $api_data  = json_decode( $body_json );

                if ( isset( $api_data->error ) && !empty( $api_data->error ) ) {
                    $error_message = isset( $api_data->error->message ) ? $api_data->error->message : 'Unknown API Error';
                    return esc_html( $error_message ); 
                    wp_die();
                }
                
                $complete = isset( $api_data->choices[0]->message->content ) ? $api_data->choices[0]->message->content : '';
            }

        }else if( $ai_engines == 'gpt-3.5-turbo' || $ai_engines == 'gpt-4' || $ai_engines == 'gpt-4o' || $ai_engines == 'gpt-4o-mini' || $ai_engines == 'gpt-4.1' || $ai_engines == 'gpt-4.1-mini' || $ai_engines == 'gpt-4.1-nano' || ( substr( $ai_engines, 0, 5 ) == 'gpt-4' ) || ( substr( $ai_engines, 0, 5 ) == 'gpt-5' ) || ( substr( $ai_engines, 0, 5 ) == 'gpt-6' ) || ( substr( $ai_engines, 0, 2 ) == 'o1' ) || ( substr( $ai_engines, 0, 2 ) == 'o3' ) || $ai_engines == 'chatgpt-4o-latest' || $ai_engines == 'gpt-4.5-preview' ){
            

            $gptkeyword = array(
                array(
                    "role" => "user",
                    "content" => $myprompt 
                )
            );

            $post_fields = array(
                "model"         => $ai_engines,
                "messages"      => $gptkeyword,
                "temperature"   => ( float )$temperature
            );

            $url = 'https://api.openai.com/v1/chat/completions';
            $args = array(
                'method'  => 'POST', 
                'headers' => array(
                    'Content-Type'  => 'application/json',
                    'Authorization' => 'Bearer ' . $OPENAI_API_KEY
                ),
                'body'    => json_encode($post_fields),
                'timeout' => 45 // Adjust timeout as needed
            );

            $response = wp_remote_post( $url, $args );

            if ( is_wp_error( $response ) ) {
                $error_message = $response->get_error_message();
                    
                printf(
                    esc_html( 'Something went wrong: %s', 'seo-help' ),
                    esc_html( $error_message )
                );
            } else {
                $body = wp_remote_retrieve_body( $response );
                $data = json_decode( $body );
            }

            $complete = isset($data->choices[0]->message->content) ? esc_attr($data->choices[0]->message->content) : '';

        }else{

            $request_body = [
                "prompt"     => $myprompt,
                "model"      => $ai_engines,
                "temperature"=> (float) $temperature,
                "presence_penalty" => (float) $ppenalty, 
                "frequency_penalty" => (float) $fpenalty, 
                "top_p"      => 1,
                "best_of"    => 1,
            ];

            $url = "https://api.openai.com/v1/completions";
            $args = array(
                'body'    => json_encode( $request_body ),
                'headers' => array(
                    'Content-Type'  => 'application/json',
                    'Authorization' => 'Bearer ' . $OPENAI_API_KEY, 
                ),
                'method'  => 'POST',
                'timeout' => 45,
            );

            $response = wp_remote_post( $url, $args );

            $complete = '';

            if ( is_wp_error( $response ) ) {
                $error_message = $response->get_error_message();
                error_log( "OpenAI API Request Failed: $error_message" ); 
                return esc_html( 'An API error occurred. Please try again later.', 'seo-help' );
                wp_die();
            } else {

                $body_json = wp_remote_retrieve_body( $response );
                $api_data  = json_decode( $body_json );

                if ( isset( $api_data->error ) && !empty( $api_data->error ) ) {
                    $error_message = isset( $api_data->error->message ) ? $api_data->error->message : 'Unknown API Error';
                    return esc_html( $error_message ); 
                    wp_die();
                }
                
                $complete = isset( $api_data->choices[0]->text ) ? $api_data->choices[0]->text : '';
                
            }

        }


        return $complete;
    }
}