<commit_before>;
; isa.scm
;
; Experimental code for using PLN on IsA relationships
;

; Define the meaning of "isa" relations
; If IsA(A,B) and IsA (B,C) then IsA(A,C)
(ForallLink (stv 1 1)
	(ListLink (stv 1 0)
		(VariableNode "$var-isa-A" (stv 1 0))
		(VariableNode "$var-isa-B" (stv 1 0))
		(VariableNode "$var-isa-C" (stv 1 0))
	)
	(ImplicationLink (stv 1 0)
		; "If ..." part of the implcation
		(AndLink (stv 1 0)
			(EvaluationLink (stv 1 0)
				(DefinedLinguisticRelationshipNode "isa")
				(ListLink (stv 1 0)
					(VariableNode "$var-isa-A")
					(VariableNode "$var-isa-B")
				)
			)
			(EvaluationLink (stv 1 0)
				(DefinedLinguisticRelationshipNode "isa")
				(ListLink (stv 1 0)
					(VariableNode "$var-isa-B")
					(VariableNode "$var-isa-C")
				)
			)
		)
		; "then ..." part of the implication
		(EvaluationLink (stv 1 0)
			(DefinedLinguisticRelationshipNode "isa")
			(ListLink (stv 1 0)
				(VariableNode "$var-isa-A")
				(VariableNode "$var-isa-C")
			)<commit_msg>Fix linas' isa demo<commit_after>;
; isa.scm
;
; Experimental code for using PLN on IsA relationships
;

; Define the meaning of "isa" relations
; If IsA(A,B) and IsA (B,C) then IsA(A,C)
(ForAllLink (stv 1 1)
	(ListLink (stv 1 0)
		(VariableNode "$var-isa-A" (stv 1 0))
		(VariableNode "$var-isa-B" (stv 1 0))
		(VariableNode "$var-isa-C" (stv 1 0))
	)
	(ImplicationLink (stv 1 0)
		; "If ..." part of the implcation
		(AndLink (stv 1 0)
			(EvaluationLink (stv 1 0)
				(DefinedLinguisticRelationshipNode "isa")
				(ListLink (stv 1 0)
					(VariableNode "$var-isa-A")
					(VariableNode "$var-isa-B")
				)
			)
			(EvaluationLink (stv 1 0)
				(DefinedLinguisticRelationshipNode "isa")
				(ListLink (stv 1 0)
					(VariableNode "$var-isa-B")
					(VariableNode "$var-isa-C")
				)
			)
		)
		; "then ..." part of the implication
		(EvaluationLink (stv 1 0)
			(DefinedLinguisticRelationshipNode "isa")
			(ListLink (stv 1 0)
				(VariableNode "$var-isa-A")
				(VariableNode "$var-isa-C")
			)
{'fraction_non_alphanumeric': 0.153420523138833, 'fraction_numerical': 0.026156941649899398, 'mean_word_length': 3.1095041322314048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '886224', 'n_tokens_mistral': 977, 'n_tokens_neox': 783, 'n_words': 215}