Categorial grammar (CCG)
Lexical categories such as (S\NP)/NP are functions. Derivations correspond to typed function application and composition.
Neural reading: categories as typed tensors, with combinators as learned or fixed contractions.
research programme · neuro-symbolic computational linguistics
LingEmbed studies how the structures of formal linguistics (categories, types, λ-terms, dependency arcs, semantic graphs) can be written into vector spaces and neural networks, and how they can be read back out of them.
interactive · 01
Pick a theory. The analysis of every student reads a book is drawn on the left. In the middle, its nodes are placed so that ‖hᵢ − hⱼ‖² = dtree(i, j), which is the geometry a structural probe looks for. On the right, the embedding is passed through a small neural encoder. Hover a node to follow it through all three stages.
scope · 02
Each framework commits to a different kind of structure. Each commitment can become a constraint, a target, or an architecture for a neural model.
Lexical categories such as (S\NP)/NP are functions. Derivations correspond to typed function application and composition.
Neural reading: categories as typed tensors, with combinators as learned or fixed contractions.
Meanings are typed λ-terms (e, t, e→t…), and composition is β-reduction. Modern type theories add dependent and subtyped structure.
Neural reading: type-respecting embeddings, and logic-aware losses for entailment and quantifier scope.
Pregroup types fix tensor orders: nouns are vectors in N, and transitive verbs live in N⊗S⊗N. Grammar specifies how the tensors are contracted.
Neural reading: grammar-shaped tensor networks with an exact diagrammatic semantics.
Head–dependent arcs labelled nsubj, obj, det. The analysis is a tree over the words themselves.
Neural reading: structural probes, graph encoders, and attention constrained by arcs.
Rooted, labelled graphs of predicates and roles, e.g. read-01 :ARG0 student. Surface words that carry no content are abstracted away.
Neural reading: graph embeddings, role binding, and graph-to-text and text-to-graph models.
Form–meaning pairings at every grain size, from morphemes to idioms to argument-structure constructions.
Neural reading: constructions as reusable subspaces or memory slots, tested with minimal pairs.
interactive · 03
Smolensky's tensor product representations bind each filler (a word or concept) to a role (its structural position) with an outer product, then sum the bindings: T = Σ fᵢ ⊗ rᵢ. If the roles are orthonormal, unbinding T·rₖ returns fₖ exactly. Turn orthonormality off to see crosstalk. The fillers and roles come from the theory selected above.
methods · 04
Neuro-symbolic work on language runs both ways. Symbolic structure can be injected into a network, or extracted from one that was trained without it.
project · 05
Planned components of the repository. Edit this list in index.html as the work progresses.
Converters from CCG derivations, λ-terms, UD trees and AMR graphs to a shared role/filler format.
TPR, typed-tensor (DisCoCat-style) and tree-metric embeddings, with exact unbinding tests.
Structural, type and scope probes for pretrained language models, with control tasks.
Compositional generalisation and inference tasks that compare theory-informed and unconstrained models.
@misc{lingembed,
title = {LingEmbed: Embedding Linguistic Theory into Neural Representations},
author = {TODO: author list},
year = {2026},
url = {https://github.com/StergiosCha/LingEmbed}
}