Skip to content

Libraries & Functions

karimouda edited this page Feb 6, 2016 · 1 revision

Core.lib.php

  • preprint_r
  • echoN
  • printHTMLPageHeader
  • multibyteStringOrdinal
  • multibyteCharOrdinal
  • showHiddenChars
  • addCommasToNumber
  • rsortBy
  • logQuery
  • shuffle_assoc
  • removeTashkeel
  • shallowUthmaniToSimpleConversion
  • stripBOM
  • cleanAndTrim
  • isArabicString
  • myLevensteinEditDistance
  • getHammingDistance
  • getDistanceBetweenWords
  • print2dArray
  • toggleLanguage
  • getStopWordsArrByFile
  • getPauseMarksArrByFile
  • arabicToBuckwalter
  • buckwalterReverseTransliteration
  • stripHTMLComments
  • getQACSegmentByQuranaSeqment
  • getWordIndexByQACSegment
  • addValueToMemoryModel
  • updateModelData
  • getModelEntryFromMemory
  • modelEntryExistsInMemory
  • addToMemoryModelList
  • addToMemoryModelBatch
  • getAPCIterator
  • getVerseByQACLocation
  • getVerseTextBySuraAndAya
  • getWordIndexFromQACLocation
  • markWordWithoutWordIndex
  • markSpecificWordInText
  • getQACLocationStr
  • isDevEnviroment
  • isPauseMark
  • removePauseMarksFromArr
  • removePauseMarkFromVerse
  • getItemFromUthmaniToSimpleMappingTable
  • getSimpleWordIndexByUthmaniWordIndex
  • getImla2yWordIndexByUthmaniLocation
  • getWordFromVerseByIndex
  • handleDBError
  • findSmallestWordInArray
  • loadUthmaniDataModel
  • loadUthmaniToSimpleMappingTable
  • loadLemmaToSimpleMappingTable
  • isSimpleQuranWord
  • initArrayWithZero
  • plotHistogram
  • arrayToCSV
  • histogramFromArray
  • advanceArrayCounter
  • getRepeatedVerses
  • getNGrams
  • getPoSNGrams
  • getWordInfo
  • showTechnicalError
  • getKeyIndexFromArray
  • getPoSTaggedSubsentences
  • getLCSModifiedAlgorithm
  • getLCS
  • cleanEnglishTranslation
  • removeStopwordsAndTrim
  • getQACSegmentByPos
  • getQuranaConceptEntryByARWord
  • isMultiWordStr
  • getBasicStopWords
  • removeBasicEnglishStopwordsNoNegation
  • convertXMLStringObjectToString
  • isCurrentPage
  • getArrayHash
  • getArrayHashForFields
  • search2DArrayForValue$arr,$sentVal,$constraintArr=array
  • removeStopwordsFromArr
  • removeBasicStopwordsFromArr
  • startsWithAL
  • getStringDiff
  • returnDirectionStyle
  • swapAssocArrayKeyValues
  • posIsVerb
  • removeNonArabicAndSpaceChars
  • removeSpecialCharactersFromMidQuery
  • wordIsSubstringOfWordsInArray
  • getRootOfSimpleWord
  • getIntersectionCountOfTwoArrays
  • addAlefLam
  • removeAlefLamFromBegining
  • getSharingLinkForQuery
  • phraseArrayToWordsArray
  • getEntryKeyFromAPCKey

charts.lib.php

  • textToGraph

custom.translation.table.lib.php

  • loadTranslationTable
  • isFoundInTranslationTable
  • tranlstationCleanAndTrim
  • isFoundInTranslationTableArabicKeyword
  • getTranlationEntryByEntryKeyword
  • getTranlationEntryByArabicEntryKeyword
  • addTranslationEntry
  • removeUnacceptedChars
  • persistTranslationTable
  • printTranslationTable

graph.lib.php

  • convertConceptIDtoGraphLabel
  • convertWordToConceptID
  • formatEnglishConcept
  • textToGraph
  • createNewConceptObj
  • ontologyTextToD3Graph
  • ontologyToD3Graph
  • ontologyToD3TreemapFlat
  • getTreeNodeChildren
  • ontologyToD3TreemapHierarchical

microsoft.translator.api.lib.php

  • translateText

ontology.lib.php

  • mapQACPoSToWordnetPoS
  • trimVerb
  • isNounPhrase
  • generateEmptyConceptMetadata
  • getTermArrBySimpleWord
  • addNewConcept
  • printRelation
  • addNewRelation
  • addRelation
  • resolvePronouns
  • flushProperRelations
  • getConceptBySegment
  • getConceptByLemma
  • getConceptTypeFromDescriptionText
  • getWordsByPos
  • loadExcludesByType
  • loadExcludedSynonymssArr
  • getXMLFriendlyString
  • stripOntologyNamespace
  • conceptHasSubclasses
  • conceptHasParentClasses
  • buildRelationHashID
  • isWordPartOfAVerbInVerbIndex
  • handleNewConceptFromRelation
  • doesQuestionIncludesVerb
  • getConceptRichnessScore
  • updateNameInAllRelations
  • getConceptsFoundInText

pos.tagger.lib.php

  • getLexiconItemFromMemory
  • printTag
  • posTagText

question.answering.lib.php

  • answerUserQuestion
  • removeQuestionCluesFromArr
  • getSupportedArabicQuestionTypes
  • getSupportedEnglishQuestionTypes
  • containsQuestionWords

search.lib.php

  • getDistanceByCommonUniqueChars
  • getSimilarWords
  • addToInvertedIndex
  • posTagUserQuery
  • extendQueryWordsByDerivations
  • extendQueryWordsByConceptTaxRelations
  • extendQueryByExtractingQACDerviations
  • getScoredDocumentsFromInveretdIndex
  • getStatsByScoringTable
  • getDistributionChartData
  • printResultVerses
  • postResultSuggestions
  • showSuggestions
  • handleEmptyResults
  • searchResultsToWordcloud
  • getStatisticallySginificantWords
  • convertUthamniQueryToSimple
  • wordOrPhraseIsInIndex
  • cleanTransliteratedText
  • getSearchType

wordnet.lib.php

  • cleanWordnetCollocation
  • isExcludableSemanticType
  • getSymbolDescriptionFromMappingTable
  • getLexicoSemanticCategories
  • populateIndexArrByPoS
  • getSynsetDataByPoS
  • getLongPoSName
  • loadWordnet
  • getWordnetEntryByWordString
  • getGlossaryFirstPart

Clone this wiki locally