> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ar/khas-balmjal/10-attribute-value-matrices.md).

# مصفوفات القيم والسمات

توضح هذه المقالة تنضيد مصفوفات قيم السمات (AVMs)، وهي طريقة عملية لعرض [البنى السماتية](https://en.wikipedia.org/wiki/Feature_structure) على هيئة مجموعة من السمات وقيمها المقابلة.

## ملاحظات إرشادية حول حزم AVM لـ LaTeX

تستخدم هذه المقالة الحزمة `avm` ، التي كانت الخيار المفضّل لتنضيد AVMs عند كتابة هذه المادة في الأصل. وللأسف، فإن `avm` الحزمة لا تُوزَّع ضمن TeX Live، مما يعني أن مستخدمي Overleaf سيتعين عليهم رفع نسخة (`avm.sty`) إلى مشاريعهم. وللتغلب على ذلك، فإن [مشروع معرض Overleaf](https://www.overleaf.com/latex/templates/examples-of-attribute-value-matrices/fnrbcjztvjjv) المرفق بهذه المقالة يتضمن نسخة من `avm` الحزمة.

بديل لـ `avm`، و [`langsci-avm` الحزمة](https://ctan.org/pkg/langsci-avm?lang=en)، أصبح متاحًا الآن في TeX Live، مما يجعله قابلاً للوصول مباشرة عبر Overleaf. ومع ذلك، وبسبب الاختلافات في الصياغة والميزات، فإن `avm`الأمثلة القائمة على هذه الحزمة في هذه المقالة لن تُترجم مع `langsci-avm` وتتطلب بعض التعديل. راجع القسم 4.6 من [`langsci-avm` الوثائق](http://mirrors.ctan.org/macros/latex/contrib/langsci-avm/langsci-avm.pdf) للحصول على إرشادات حول الانتقال من `avm` إلى `langsci-avm`.

## البدء

استخدم `avm` البيئة لإنشاء مصفوفة قيم سمات، كما هو موضح في المثال التالي:

```latex
\documentclass{article}
\usepackage{avm}

\begin{document}

\begin{avm}
    \[ cat\|subcat & \<NP$_{it}$, NP$_{\@2}$, S[comp]:\@3\> \\
       content & \[ relation & \bf bother\\
                    bothered & \@2 \\
                    soa-arg  & \@3 \] \]
\end{avm}

\end{document}
```

ينتج هذا المثال المخرجات التالية:

![مصفوفة قيم سمات منضدة على Overleaf باستخدام LaTeX](/files/03a4d1d4ffa8d0fbc58f8c6a6a03445911ca16ee)

\* لاستكشاف AVMs، افتح هذا [مشروع Overleaf.](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## الاستخدام الأساسي

لتنضيد مصفوفة قيم سمات داخل `avm` بيئة، هناك عدد من الأوامر التي تحتاج إلى معرفتها:

* `\avmfont{\sc}`: يغيّر الخط المستخدم في المصفوفات، وفي هذه الحالة إلى الأحرف الكبيرة الصغيرة. ويمكن استخدام أي [عائلة خطوط](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md) ستعمل. كما أن حجم الخط و [نوع الخط](/latex/ar/alkhtwt/02-font-typefaces.md) يمكن أيضًا تحديدهما هنا.
* `\begin{avm}` و `\end{avm}`: يفتحان ويغلقان البيئة التي ستُنشأ فيها مصفوفة قيم السمات.
* `\[` و `\]`: يطبعان الأقواس المربعة التي تحدد أجزاء المصفوفة. ويمكن أيضًا استخدام أقواس أخرى مع الأمرين `\<`, `\>`, `\{` و `\}`.
* `\\`: يُدرج سطرًا جديدًا.
* `&`: ينشئ فاصلًا بين الأعمدة في السطر نفسه.

يوضح المثال التالي ذلك:

```latex
\documentclass{article}

\usepackage{avm}
\avmfont{\sc}

\begin{document}
\begin{avm}
    \[ subj & \[ pers & 3 \\
                 num & sg \\
                 gend & masc\\
                 pred & \rm ‘pro’ \]\\

        pred & \rm ‘eat\q<SUBJ, OBJ\q>’\\

                 obj & \[ pers & 3 \\
                 num & pl \\
                 gend & fem \\
                 pred & \rm ‘pro’ \]
        \]
\end{avm}

\end{document}
```

ينتج هذا المثال المخرجات التالية:

![مصفوفة قيم سمات منضدة على Overleaf باستخدام LaTeX](/files/ed3df8797d430c2b0dcc216a0fd7757d9ff30f4f)

\* لاستكشاف AVMs، افتح هذا [مشروع Overleaf.](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## الأعمدة غير المحاذاة

أحيانًا، عندما يكون الصف طويلًا جدًا، قد يكون من الملائم استخدام أعمدة غير محاذاة لتحسين الإخراج:

```latex
\begin{avm}
    \[ \avmspan{system\|local\|content\; \@2} \\
        qstore & \[det & \textnormal{forall} \\
                   restpar & \@2 \[para & \@1 \\
                                   restr & \[reln & \textnormal{book} \\
                                             inst & \@1 \] \] \] \]
\end{avm}
```

ينتج هذا المثال المخرجات التالية:

![مصفوفة قيم سمات منضدة على Overleaf باستخدام LaTeX](/files/fd67a5923f8317f182e468671ff1dda18dd9ce8a)

الأمر `\avmspan{}` يمنع محاذاة الأعمدة للوسيط الخاص به، بينما الأمر `\;` يُدرج فراغًا أفقيًا أطول قليلًا من المعتاد، مما يخلق فاصلًا جميلًا.

\* لاستكشاف AVMs، افتح هذا [مشروع Overleaf.](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## تسميات الفرز

يمكن إضافة تسميات الفرز عند زوايا AVM. وهناك نمطان ممكنان. الأول هو طباعة التسميات داخل المصفوفة:

```latex
\avmsortfont{\it}
\avmvalfont{\it}
\begin{avm}
    \[ \asort{indexed-obj}
       index & \[\asort{index}
                  variable & \@1 \[\asort{variable}
                                    per & 3rd \\
                                    num & sing \\
                                    gend & neut \] \\
                  restriction & \[\asort{psoa}
                                  relation & book \\
                                  instance & \@1 \] \] \]
\end{avm}
```

ينتج هذا الرمز المخرجات التالية:

![مصفوفة قيم سمات منضدة على Overleaf باستخدام LaTeX](/files/fd13d1a98f6a6a018572b2bf5f886ee67249e2fa)

\* لاستكشاف AVMs، افتح هذا [مشروع Overleaf.](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

هناك ثلاثة أوامر جديدة في هذا المثال:

* `\avmsortfont{\it}`: يحدد نوع الخط لمفاتيح الفرز، وهو هنا مائل، ولكن يمكن استخدام أنماط خط أخرى [وأحجام أخرى](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md)
* `\avmvalfont{\it}`: يحدد نوع الخط للقيم في AVM، وهو هنا مائل.
* `\asort{*key*}`: يطبع الفرز `*key*`.

ومن الممكن أيضًا تراكب تسمية الفرز على العمود السابق، كما هو موضح في المثال التالي:

```latex
\avmvalfont{\it}
\avmsortfont{\it}
\begin{avm}
    \sort{indexed-obj}{\[ index & \osort{index}{\[
          variable & \@1 \osort{variable}{\[  per & 3rd \\
                                              num & sing \\
                                              gend & neut \]} \\
          restriction & \osort{psoa}{\[relation & book \\
                                       instance & \@1 \]} \]} \]}
\end{avm}
```

ينتج هذا المثال المخرجات التالية:

![مصفوفة قيم سمات منضدة على Overleaf باستخدام LaTeX](/files/15a91f48881e94e87ba9136e97c60f9cf91f75c2)

\* لاستكشاف AVMs، افتح هذا [مشروع Overleaf.](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

هناك أمران جديدان:

* `\sort{*label*}`: يطبع `*label*`، مع شغل مساحة في العمود الذي يظهر فيه.
* `\osort{*label*}`: يراكب *label* من دون التحقق من التصادمات أو المساحة المتاحة.

## دليل المراجع

الأقواس المتاحة في **avm** الحزمة.

| الأمر   | الناتج                                                              |
| ------- | ------------------------------------------------------------------- |
| `\{ \}` | ![AVMbraces.png](/files/dbb675a8508e16e22084cb2ac8ccb7cdb81d140d)   |
| `\[ \]` | ![AVMbrackets.png](/files/694fbc4546b5e5b68951d8ce16bca114da4870d5) |
| `\< \>` | ![AVMchevrons.png](/files/155918c825b0e42450ecea1a0ee0af401d042013) |

## قراءة إضافية

لمزيد من المعلومات، انظر

* [ال **avm** توثيق الحزمة](http://nlp.stanford.edu/manning/tex/avm-doc.pdf)
* [ال **avm.sty** الشيفرة المصدرية](http://nlp.stanford.edu/manning/tex/avm.sty)
* [أحجام الخطوط، والعائلات، والأنماط](/latex/ar/alkhtwt/01-font-sizes-families-and-styles.md)
* [وجوه الخطوط](/latex/ar/alkhtwt/02-font-typefaces.md)
* [الجداول](/latex/ar/alashkal-waljdawl/01-tables.md)
* [الأقواس والقوسان](/latex/ar/alryadhyat/03-brackets-and-parentheses.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ar/khas-balmjal/10-attribute-value-matrices.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
